Skip to content

Commit e1171ef

Browse files
committed
Scraping
1 parent d36edf1 commit e1171ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,8 @@ Scraping
13321332
# $ pip3 install requests beautifulsoup4
13331333
>>> import requests
13341334
>>> from bs4 import BeautifulSoup
1335-
>>> page = requests.get('https://en.wikipedia.org/wiki/Python_(programming_language)')
1335+
>>> url = 'https://en.wikipedia.org/wiki/Python_(programming_language)'
1336+
>>> page = requests.get(url)
13361337
>>> document = BeautifulSoup(page.text, 'html.parser')
13371338
>>> table = document.find('table', class_='infobox vevent')
13381339
>>> rows = table.find_all('tr')

0 commit comments

Comments
 (0)