Skip to content

python library for scrape websites by specifying template in json

Notifications You must be signed in to change notification settings

ihfazhillah/py-instant-crawl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-instant-crawl

python library for scrape websites by specifying template in json

Installation

pip install pyinstantcrawl

Quickstart

  1. create the template like below and save is as sample.json
{
    "tip-of-day": {
        "expression": "string(//div[@class='tip-of-day'])",
        "type": "xpath",
        "getter": "get"
    },
    "testimonial": {
        "expression": ".testimonial",
        "type": "css",
        "getter": "getall"
    }
}
  1. call the command below
pyinstantcrawl https://pragprog.com sample.json

now its work with parent + child structure. Check it at examples folder.

About

python library for scrape websites by specifying template in json

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages