-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
request and beautiful soup of springfield website
- Loading branch information
1 parent
d42c0d7
commit 083d3f2
Showing
3 changed files
with
69 additions
and
34 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
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 |
---|---|---|
|
@@ -3,4 +3,3 @@ scripts,god_count,jesus_count,christ_count | |
Carrie,14,12,2 | ||
Catch-Me-If-You-Can,4,3,0 | ||
"Cell,-The",5,3,2 | ||
Kafka,2,0,0 |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from bs4 import BeautifulSoup | ||
import requests | ||
|
||
# requesting website | ||
res = requests.get("https://www.springfieldspringfield.co.uk/movie_scripts.php") | ||
|
||
# using soup to parse information from HTML as XML | ||
soup = BeautifulSoup(res.text, "lxml") | ||
|
||
# This is a list that contains all the information in a block of code | ||
# This contains the movies | ||
outer_box = soup.find('div', {'class': "main-content-left"}) | ||
print(outer_box) |