https://github.com/arsho/beautifulsoup_requests_demo
Use the BeautifulSoup and requests Python packages to print out a list of all the article titles on the New York Times homepage.
https://github.com/arsho/beautifulsoup_requests_demo
Last synced: over 1 year ago
JSON representation
Use the BeautifulSoup and requests Python packages to print out a list of all the article titles on the New York Times homepage.
- Host: GitHub
- URL: https://github.com/arsho/beautifulsoup_requests_demo
- Owner: arsho
- Created: 2016-11-15T19:08:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-27T06:11:18.000Z (about 9 years ago)
- Last Synced: 2025-01-28T04:46:16.311Z (over 1 year ago)
- Language: Python
- Size: 107 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Beautifulsoup Requests Demo
Solutions of 'Decode A Web Page' from http://www.practicepython.org/exercise/2014/06/06/17-decode-a-web-page.html
It includes a list of exercises to introduce people to Python programming language.
This repository also includes the PDF file of the exercises.
## Step to install Beautifulsoup and Requests inside virtualenv
To install Beautifulsoup and Requests with Python3 in Ubuntu,
Create a folder and open terminal in it then write the following lines one by one in terminal:
```bash
$ virtualenv -p python3 venv
$ source venv/bin/activate
(venv)$ python -m pip install --upgrade pip
(venv)$ python -m pip install --upgrade setuptools
(venv)$ pip install requests
(venv)$ pip install beautifulsoup4
```
## Step to run nytimes.py inside venv
```bash
Keep the nytimes.py inside the venv folder and write the following line in terminal
(venv)$ python venv/nytimes.py
```
## Contributing
Everyone is welcome to contribute. Feel free to submit a pull request, issue or suggestion you may find relevant.
## Reference
The original exercise was created by Michele Pratusevich ([Personal_site(http://www.mprat.org/)])
and can be found [here](http://www.practicepython.org/exercise/2014/06/06/17-decode-a-web-page.html).