No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
scraper.py

README.md

Getting started with screenscraping using Chrome Scraper

This repo: http://bit.ly/grav15-scraping

###More tutorials

###Sample code

	<ul>
		<li>
			Name: <strong class="name">Donatello</strong>
		</li>
		<li>
			Name: <strong class="name">Michelangelo</strong>
		</li>
		<li>
			Name: <strong class="name">Raffaello</strong>
		</li>
		<li>
			Name: <strong class="name">Leonardo</strong>
		</li>
	</ul>

Get the all names: //li/strong

Or: //strong[@class="name"]

Get first name: //li/strong[1]

XPath basics

Expression What is does
// Search whole document
//div[2] Get n:th tag
//div[2]/table[1]/tr[3] Get n:th, inside n:th, inside n:th tag...
//div[@class="class-name"] Get by attribute
//div[@id="download"] Could be any attribute
//div/text() Get text content of tag

###Links you need

Other tools (for scraping without code)