Skip to content

Instantly share code, notes, and snippets.

@Mec-iS
Created August 14, 2014 20:19
Show Gist options
  • Save Mec-iS/41512b072baaa2cfa65e to your computer and use it in GitHub Desktop.
Save Mec-iS/41512b072baaa2cfa65e to your computer and use it in GitHub Desktop.
Quickscrape's scrapers definition for nasasearch
{
"url": "nasasearch.nasa.gov",
"elements": {
"title": {
"selector": "//div[@id='search']/div[@id='results']/div[@class='searchresult']/h2/a",
"attribute": "text"
},
"link": {
"selector": "//div[@id='search']/div[@id='results']/div[@class='searchresult']/h2/a",
"attribute": "href"
},
"abstract": {
"selector": "//div[@id='search']/div[@id='results']/div[@class='searchresult']/h3[not(@id) and not(@class)]",
"attribute": "text"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment