Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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)

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.