Skip to content

Commit 3780f9e

Browse files
committed
Let's use a more recent set of episodes.
1 parent dddaba4 commit 3780f9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/04-asyncio/web_scraping/async_scrape/program.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def get_title_range():
5757
# Please keep this range pretty small to not DDoS my site. ;)
5858

5959
tasks = []
60-
for n in range(150, 160):
60+
for n in range(375, 385):
6161
tasks.append((n, loop.create_task(get_html(n))))
6262

6363
for n, t in tasks:

src/04-asyncio/web_scraping/sync_scrape/program.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def main():
3434

3535
def get_title_range():
3636
# Please keep this range pretty small to not DDoS my site. ;)
37-
for n in range(150, 160):
37+
for n in range(375, 385):
3838
html = get_html(n)
3939
title = get_title(html, n)
4040
print(Fore.WHITE + f"Title found: {title}", flush=True)

0 commit comments

Comments
 (0)