Created
August 11, 2021 15:10
-
-
Save AnderRV/d513b463f979544a2eed5c70084e9cb8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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