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 bs4 | |
| import requests | |
| cath_resp = requests.get('http://www.reddit.com/r/Catholicism/top/') | |
| soup = bs4.BeautifulSoup(cath_resp.text) | |
| print(soup.prettify()) |
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
| __author__ = 'bordy' | |
| def checkio(data): | |
| if (len(data)<10) or (data==data.upper()) or (data==data.lower()): | |
| return False | |
| else: | |
| digits = [i for i in data if i in [str(x) for x in range(10)]] | |
| if digits == []: | |
| return False | |
| else: |
OlderNewer