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 requests | |
| import sys | |
| import pprint | |
| import re | |
| from difflib import SequenceMatcher | |
| from requests_oauthlib import OAuth1 | |
| def clean_tweet(text): | |
| return " ".join(re.sub(r"http://t.co/\w+", "", text).split()) |
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 requests | |
| from bs4 import BeautifulSoup | |
| homepage = requests.get('http://www.milliondollarhomepage.com') | |
| soup = BeautifulSoup(homepage.content) | |
| response_codes = {'error': 0} | |
| urls = {} | |
| for area in soup.find_all('area'): |
NewerOlder