FindFeed determines if a url contains a syndication feed and processes that feed.
If a feed is found, FindFeed will print out the title, url, and sentiment of each post in the feed along with the positive and negative indicators used to determine the sentiment.
---------------------------------------------------------------------------
Title: This drone is cleaning windows 1,100 feet above the ground, so
humans don't have to
URL: https://mashable.com/video/window-washing-drones-aerones-cleaning-
turbines/
Positive Indicator Words:
['right', 'kind']
Negative Indicator Words:
['dangerous']
The overall sentiment of this post is neutral!
---------------------------------------------------------------------------
If a feed is not found, FindFeed will alert the user.
No feed found on this site. Try another!
'End'
If FindFeed is unable to determine if a feed is present due to a '403 Forbidden' error, FindFeed will alert the user.
'Sorry! Not authorized to check for feeds on this site.'
'End'
- Python version 3
- pip modules:
- Requests
pip install requests
- TextBlob
pip install textblob
- BeautifulSoup
pip install beautifulsoup
- TextWrap
pip install textwrap
- Requests
- Clone this repo into the folder of your choice.
$ git clone https://github.com/JNC260/BevyProject.git
-
Open the command line.
-
Move into the the repo.
$ cd BevyProject/
- Run the following command with the url you'd like to test.
$ python findfeed.py <your url>
- NOTE: All urls must begin with http:// or https://