- Notifications
You must be signed in to change notification settings - Fork11
A library to read a YML file with Xpath or CSS Selectors and extract data from HTML pages using them
License
NotificationsYou must be signed in to change notification settings
scrapehero/selectorlib
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A library to read a YML file with Xpath or CSS Selectors and extract data from HTML pages using them
- Free software: MIT license
- Documentation:https://selectorlib.readthedocs.io.
>>>from selectorlibimport Extractor>>> yaml_string=""" title: css: "h1" type: Text link: css: "h2 a" type: Link """>>> extractor= Extractor.from_yaml_string(yaml_string)>>> html=""" <h1>Title</h1> <h2>Usage <a href="http://test">¶</a> </h2> """>>> extractor.extract(html){'title': 'Title', 'link': 'http://test'}
About
A library to read a YML file with Xpath or CSS Selectors and extract data from HTML pages using them
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.