Hi! I created and released a package named Feedy for collecting and processing the data from RSS feed. For example, If you want to collect images on CNN Website, creating main.py:
from feedy import Feedy
from bs4 import BeautifulSoup
app = Feedy('feedy.dat') # store last fetched time
@app.add('http://rss.cnn.com/rss/edition.rss')
def cnn(info, body):
soup = BeautifulSoup(body, "html.parser")
for x in soup.find_all('img'):
print(x['src'])
if __name__ == '__main__':
app.run()
If you are interested, please read README.md. And If you have some requests for this package, please tell me. I'll improve this package as soon as I can. (◕‿◕)
1 comment
[ 29.4 ms ] story [ 1012 ms ] thread