import crawring

from concurrent.futures import ThreadPoolExecutor
from concurrent.futures import ProcessPoolExecutor

page = 13323069
# page = str(page)
# url = f"http://movie.naver.com/movie/point/af/list.nhn?st=nickname&sword={page}&target=after"


# with ThreadPoolExecutor(max_workers=3) as executor:
#         executor.submit(crawring.do_crawl,url)

# crawring.do_crawl(url)
while page > 13322569:
    page = str(page)
    url = f"http://movie.naver.com/movie/point/af/list.nhn?st=nickname&sword={page}&target=after"

    with ThreadPoolExecutor(max_workers=3) as executor:
        executor.submit(crawring.do_crawl,url)

        page = int(page)
        page -= 1