Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Publication Station
Search
Editing
Web scraping
(section)
From Publication Station
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Creating a selector == '''Step 5''' Create a new sitemap. Call it for example "alice". The start url is the page you are currently on: https://www.gutenberg.org/files/11/11-h/11-h.htm {{Columns}} {{Column}}[[File:Alice-wonderland-create-sitemap.png]]{{ColumnEnd}} {{Column}}[[File:Web-scrape-create-sitemap.png]]{{ColumnEnd}} {{ColumnsEnd}} '''Step 6''' Our goal will be to scrape each title and paragraph. * Click on "Add new selector". * Add an "Id" which makes sense, for example "content". * Set "Type" from "Text" to "HTML". We do this because each paragraph can still have HTML inside it. * Click "Select". You can now start selecting which elements you would like to scrape. Start with the title and then the paragraphs while holding "shift". <gallery> Web-scrape-selecting-elements-1.png|Selecting the first element Web-scrape-selecting-elements-2.png|Selecting the second element - while holding shift Web-scrape-selecting-elements-3.png|Selecting the next element - while holding shift Web-scrape-selecting-elements-4.png|Selecting elements in second chapter - while holding shift </gallery> * Click on "Done selecting" * Check the checkbox for "multiple". Otherwise only the first element will be scraped. * Click on "Save selector" [[File:Web-scrape-save-selector.png|Settings for our new selector]]
Summary:
Please note that all contributions to Publication Station are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Publication Station:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Main navigation
Main page
Printmaking Studio
Print Studio
Dig. Publishing Studio
Namespaces
Grafiwiki
Random Page
Log in
Wiki tools
Wiki tools
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs