GrabPycurl wrapper | |
Download |
Grab Ranking & Summary
Advertisement
- License:
- BSD License
- Publisher Name:
- Grigoriy Petukhov
- Publisher web site:
- http://bitbucket.org/lorien/
Grab Tags
Grab Description
Pycurl wrapper Grab is a site scraper powered with curl.Aims of Grab library: * Provide easy interface to pycurl library * Provide tools for easy scraping, parsing, grabbing web sitesInstallationPut grab package to python path and use it.DocumentationIf you understand russian you can read it hereExamples of usageFind the size in Kib of the google home page.from grab import Grabg = Grab()g.setup(url='http://google.com')g.request()print len(g.response_body) // 1024Log in to bitbucket.org and send message to user lorien.from grab import Grabg = Grab()g.setup(url='http://bitbucket.org/account/signin/', post={'username': 'lorien', 'password': '****', 'blogin': 'Sign in'})g.request()g.setup(url='http://bitbucket.org/notifications/send/', post={'recipient': 'lorien', 'title': 'Hi, me', 'message': 'How are you?'})g.request() Requirements: · Python · curl and libcurl
Grab Related Software