Created
July 25, 2014 21:44
-
-
Save Exodus111/0a806f4c1191f618a646 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
from bs4 import BeautifulSoup as bs | |
import requests | |
url = "en.wikipedia.org/wiki/List_of_X-Men_comics" | |
r = requests.get("http://" +url) | |
data = r.text | |
soup = bs(data) | |
text = soup.get_text() | |
for line in text.splitlines(): | |
if "present)" in line: | |
print(line) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment