Skip to content

Commit 1c48ef6

Browse files
committed
Scraping
1 parent 3199b3d commit 1c48ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,9 +1326,9 @@ def scrape(url):
13261326
>>> document = scrape('https://en.wikipedia.org/wiki/Python_(programming_language)')
13271327
>>> table = document.find('table', class_='infobox vevent')
13281328
>>> rows = table.find_all('tr')
1329-
>>> rows[11].find('a')['href']
1329+
>>> website = rows[11].find('a')['href']
13301330
'https://www.python.org/'
1331-
>>> rows[6].find('div').text.split()[0]
1331+
>>> latest_v = rows[6].find('div').text.split()[0]
13321332
'3.7.2'
13331333
```
13341334

0 commit comments

Comments
 (0)