From 1c48ef6061339a3fc2492e3a8caaea0f4c30c39e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= <sornjure@gmail.com> Date: Sat, 29 Dec 2018 16:54:12 +0100 Subject: [PATCH] Scraping --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1d950a..57ab0ab 100644 --- a/README.md +++ b/README.md @@ -1326,9 +1326,9 @@ def scrape(url): >>> document = scrape('https://en.wikipedia.org/wiki/Python_(programming_language)') >>> table = document.find('table', class_='infobox vevent') >>> rows = table.find_all('tr') ->>> rows[11].find('a')['href'] +>>> website = rows[11].find('a')['href'] 'https://www.python.org/' ->>> rows[6].find('div').text.split()[0] +>>> latest_v = rows[6].find('div').text.split()[0] '3.7.2' ```