Skip to content

Instantly share code, notes, and snippets.

@AnderRV
Created August 11, 2021 15:10
Show Gist options
  • Save AnderRV/d513b463f979544a2eed5c70084e9cb8 to your computer and use it in GitHub Desktop.
Save AnderRV/d513b463f979544a2eed5c70084e9cb8 to your computer and use it in GitHub Desktop.
import queue
q = queue.Queue()
q.put('https://scrapeme.live/shop/page/1/')
def crawl(url):
# ...
links = extract_links(soup)
for link in links:
if link not in visited:
q.put(link)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment