-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #589 from realpython/bs4-update
Add materials for updated bs4 tutorial
- Loading branch information
Showing
3 changed files
with
50 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,37 @@ | ||
# Build a Web Scraper With Requests and Beautiful Soup | ||
# Beautiful Soup: Build a Web Scraper With Python | ||
|
||
This repository contains [`scrape_jobs.py`](https://github.com/realpython/materials/blob/master/web-scraping-bs4/scrape_jobs.py), which is the sample script built in the Real Python tutorial on how to [Build a Web Scraper With Requests and Beautiful Soup](https://realpython.com/beautiful-soup-web-scraper-python/). | ||
This repository contains `scraper.py`, which is the sample script built in the Real Python tutorial [Beautiful Soup: Build a Web Scraper With Python](https://realpython.com/beautiful-soup-web-scraper-python/). | ||
|
||
## Installation and Setup | ||
|
||
1. Create a Python virtual environment | ||
|
||
```sh | ||
$ python -m venv venv/ | ||
$ source venv/bin/activate | ||
(venv) $ | ||
``` | ||
|
||
2. Install the requirements | ||
|
||
```sh | ||
(venv) $ pip install -r requirements.txt | ||
``` | ||
|
||
## Run the Scraper | ||
|
||
Run the scraper script: | ||
|
||
```sh | ||
(venv) $ python scraper.py | ||
``` | ||
|
||
You'll see the filtered and formatted Python job listings from the Fake Python job board printed to your console. | ||
|
||
## About the Author | ||
|
||
Martin Breuss - Email: [email protected] | ||
|
||
## License | ||
|
||
Distributed under the MIT license. See ``LICENSE`` for more information. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
beautifulsoup4==4.9.3 | ||
certifi==2020.12.5 | ||
chardet==4.0.0 | ||
idna==2.10 | ||
requests==2.25.1 | ||
soupsieve==2.2.1 | ||
urllib3==1.26.4 | ||
beautifulsoup4==4.12.3 | ||
certifi==2024.8.30 | ||
charset-normalizer==3.3.2 | ||
idna==3.10 | ||
requests==2.32.3 | ||
soupsieve==2.6 | ||
urllib3==2.2.3 |
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