-
-
Save AnderRV/4c0dfe8a584334a49eef09cd30287028 to your computer and use it in GitHub Desktop.
This file contains 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 repo | |
def extract_content(url, soup): | |
return soup.title.string # extract page's title | |
def store_content(url, content): | |
# store in a hash with the URL as the key and the title as the content | |
repo.set_content(url, content) | |
def allow_url_filter(url): | |
return True # allow all by default | |
def get_html(url): | |
# ... same as before |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment