Difference between revisions of "Web scraping"
From Publication Station
VKranendonk (talk | contribs) |
VKranendonk (talk | contribs) |
||
Line 6: | Line 6: | ||
{{Column}}[[File:Alice Wonderland Scraped.png]]{{ColumnEnd}} | {{Column}}[[File:Alice Wonderland Scraped.png]]{{ColumnEnd}} | ||
{{ColumnsEnd}} | {{ColumnsEnd}} | ||
'''Step 1:''' | |||
We will use a browser extension called WebScraper.io. You can install the extension [https://addons.mozilla.org/en-US/firefox/addon/web-scraper/ for Firefox] or for [https://addons.mozilla.org/en-US/firefox/addon/web-scraper/ for Chrome]. | We will use a browser extension called WebScraper.io. You can install the extension [https://addons.mozilla.org/en-US/firefox/addon/web-scraper/ for Firefox] or for [https://addons.mozilla.org/en-US/firefox/addon/web-scraper/ for Chrome]. | ||
'''Step 2:''' | |||
After installing the extension you can navigate to Alice’s Adventures in Wonderland on the [https://www.gutenberg.org/files/11/11-h/11-h.htm Gutenberg website]. | |||
'''Step 3:''' | |||
Right click anywhere on the screen and click "inspect". This will open the inspector, a tool commonly used for debugging websites. | |||
[[File:Alice Wonderland Inspect.png]] | |||
'''Step 4:''' |
Revision as of 08:48, 2 September 2022
Web scraping is used to scrape data such as text and images from websites. In this example we will scrape data from the Gutenberg website.
The purpose of web scraping is to transform web content into usable data for other programs or analysis. In this case we transform the following website into CSV data which can be opened in Microsoft Excel or Numbers.
Step 1:
We will use a browser extension called WebScraper.io. You can install the extension for Firefox or for for Chrome.
Step 2:
After installing the extension you can navigate to Alice’s Adventures in Wonderland on the Gutenberg website.
Step 3:
Right click anywhere on the screen and click "inspect". This will open the inspector, a tool commonly used for debugging websites.
Step 4: