Created
May 16, 2019 11:31
-
-
Save hltbra/ef27fb4d0c392241ea6b48c522164518 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
@starting_task | |
def scrape_listing(): | |
for link in get_links(LISTING_URL): | |
schedule('scrape_link', link, seconds=0) | |
@subtask | |
def scrape_link(url): | |
resp = requests.get(url) | |
info = get_link_info(resp.content) | |
save('link', info) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment