Sending an HTTP GET Request. A simple network operation of PycURL is to retrieve information. PycURL Qseero Radian6 RAMPyBot RufusBot SandCrawler SBIder ScoutJet Scrubby SearchSight Seekbot semanticdiscovery Sensis Web Crawler SEOChat::Bot SeznamBot Shim-Crawler ShopWiki Shoula robot silk Sitebot Snappy sogou spider Sosospider Speedy Spider Sqworm StackRambler suggybot SurveyBot SynooBot Teoma TerrawizBot TheSuBot Thumbnail.CZ robot.
Released:
A Requests-compatible interface for pycURL
Project description
PycURL Requests is a Requests-compatible interface forPycURL.
Requirements
- Python 3.6+
Installation
Latest release via pip
:
via Git:
Quick-start
Macos mojave vmware. The library can also be used to run existing Python scripts that import the requests
module.By running the script through the pycurl_requests
helper, any use of the requests
module willbe automatically redirected to pycurl_requests
.
request
tool
Pycurl Example
A basic curl
-like command-line utility is included:
This can also be used with the Requests library ifPYCURLREQUESTS_REQUESTS
environment variable is set to a non-null value.
Documentation
This library aims to be API compatible with Requests,thus the Requests documentation should bemostly applicable.
cURL options
It is possible customize cURL's behaviour using the curl
attribute on aSession object
.
For example, to make a request without requesting the body:
See the pycurl.Curl
object documentationfor all possible curl
attribute methods.
cURL exceptions
All pycurl.error
exceptionsare mapped to a requests.RequestException
(or one of its subclasses).
For convenience, the original pycurl.error
error message andcURL error code will be set on the exceptionobject as the curl_message
and curl_code
attributes.
It is also possible to obtain the original pycurl.error
using the __cause__
attribute.
Logging
Detailed log records from libcurl
, including informational text and HTTP headers, can be shownby setting the curl
logger (or sub-loggers) to DEBUG
level:
Log records are split into dedicated sub-loggers for each type of record:
curl.text
— Informational textcurl.header_in
— Header data received from the peercurl.header_out
— Header data sent to the peer
Known limitations
- No support for reading Cookies
- No support for client-side certificates
- No support for proxies
- No support for link headers (e.g.
Response.links
) - No support for sending multi-part encoded files
- Basic support for
Session
objects (e.g.requests.Session
)
Most of these features should be supported in the near future.
License
Licensed under the MIT License.
Release historyRelease notifications | RSS feed
0.2.0
0.1.2
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pycurl_requests-0.2.0-py3-none-any.whl (29.9 kB) | File type Wheel | Python version py3 | Upload date | Hashes |
Filename, size pycurl-requests-0.2.0.tar.gz (23.3 kB) | File type Source | Python version None | Upload date | Hashes |
Pycurl -f
ClosePycurl Vs Requests
Hashes for pycurl_requests-0.2.0-py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | 7e62215fd91dc9476bd40ee06db5fafb335e25e55535fe39b0d3955e1f858e64 |
MD5 | 9a627a5072d31f96b269eac272eeba80 |
BLAKE2-256 | 2321efb252f97b6ace49e9f0bbd6be45d42d7a00db2135aedd732c5083b37d9c |
Hashes for pycurl-requests-0.2.0.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | 55256b07113496690ef5e5e6d0b296b2250c119a524e3e044a2782b0352ca980 |
MD5 | 1f4fc0781b65ffffc7688cee4866a9d0 |
BLAKE2-256 | 4432d9a6cf98807a120bfcdc48f672cf714ead2f29654a4870f42188bfdfdc0a |
List of User Agent Strings
ALL CRAWLERS 008 ABACHOBot Accoona-AI-Agent AddSugarSpiderBot AnyApexBot Arachmo B-l-i-t-z-B-O-T Baiduspider BecomeBot BeslistBot BillyBobBot Bimbot Bingbot BlitzBOT boitho.com-dc boitho.com-robot btbot CatchBot Cerberian Drtrs Charlotte ConveraCrawler cosmos Covario IDS DataparkSearch DiamondBot Discobot Dotbot EARTHCOM.info EmeraldShield.com WebBot envolk[ITS]spider EsperanzaBot Exabot FAST Enterprise Crawler FAST-WebCrawler FDSE robot FindLinks FurlBot FyberSpider g2crawler Gaisbot GalaxyBot genieBot Gigabot Girafabot Googlebot Googlebot-Image GurujiBot HappyFunBot hl_ftien_spider Holmes htdig iaskspider ia_archiver iCCrawler ichiro igdeSpyder IRLbot IssueCrawler Jaxified Bot Jyxobot KoepaBot L.webis LapozzBot Larbin LDSpider LexxeBot Linguee Bot LinkWalker lmspider lwp-trivial mabontland magpie-crawler Mediapartners-Google MJ12bot MLBot Mnogosearch mogimogi MojeekBot Moreoverbot Morning Paper msnbot MSRBot MVAClient mxbot NetResearchServer NetSeer Crawler NewsGator NG-Search nicebot noxtrumbot Nusearch Spider NutchCVS Nymesis obot oegp omgilibot OmniExplorer_Bot OOZBOT Orbiter PageBitesHyperBot Peew polybot Pompos PostPost Psbot PycURL Qseero Radian6 RAMPyBot RufusBot SandCrawler SBIder ScoutJet Scrubby SearchSight Seekbot semanticdiscovery Sensis Web Crawler SEOChat::Bot SeznamBot Shim-Crawler ShopWiki Shoula robot silk Sitebot Snappy sogou spider Sosospider Speedy Spider Sqworm StackRambler suggybot SurveyBot SynooBot Teoma TerrawizBot TheSuBot Thumbnail.CZ robot TinEye truwoGPS TurnitinBot TweetedTimes Bot TwengaBot updated Urlfilebot Vagabondo VoilaBot Vortex voyager VYU2 webcollage Websquash.com wf84 WoFindeIch Robot WomlpeFactory Xaldon_WebSpider yacy Yahoo! Slurp Yahoo! Slurp China YahooSeeker YahooSeeker-Testing YandexBot YandexImages YandexMetrika Yasaklibot Yeti YodaoBot yoogliFetchAgent YoudaoBot Zao Zealbot zspider ZyBorg | BROWSERS ABrowse Acoo Browser America Online Browser AmigaVoyager AOL Arora Avant Browser Beonex BonEcho Browzar Camino Charon Cheshire Chimera Chrome ChromePlus Classilla CometBird Comodo_Dragon Conkeror Crazy Browser Cyberdog Deepnet Explorer DeskBrowse Dillo Dooble Edge Element Browser Elinks Enigma Browser EnigmaFox Epiphany Escape Firebird Firefox Fireweb Navigator Flock Fluid Galaxy Galeon GranParadiso GreenBrowser Hana HotJava IBM WebExplorer IBrowse iCab Iceape IceCat Iceweasel iNet Browser Internet Explorer iRider Iron K-Meleon K-Ninja Kapiko Kazehakase Kindle Browser KKman KMLite Konqueror LeechCraft Links Lobo lolifox Lorentz Lunascape Lynx Madfox Maxthon Midori Minefield Mozilla myibrow MyIE2 Namoroka Navscape NCSA_Mosaic NetNewsWire NetPositive Netscape NetSurf OmniWeb Opera Orca Oregano osb-browser Palemoon Phoenix Pogo Prism QtWeb Internet Browser Rekonq retawq RockMelt Safari SeaMonkey Shiira Shiretoko Sleipnir SlimBrowser Stainless Sundance Sunrise surf Sylera Tencent Traveler TenFourFox theWorld Browser uzbl Vimprobable Vonkeror w3m WeltweitimnetzBrowser WorldWideWeb Wyzo MOBILE BROWSERS Android Webkit Browser BlackBerry Blazer Bolt Browser for S60 Doris Dorothy Fennec Go Browser IE Mobile Iris Maemo Browser MIB Minimo NetFront Opera Mini Opera Mobile SEMC-Browser Skyfire TeaShark Teleca-Obigo uZard Web CONSOLES Bunjalloo Playstation 3 Playstation Portable Wii OFFLINE BROWSERS Offline Explorer SuperBot Web Downloader WebCopier WebZIP Wget E-MAIL CLIENTS Thunderbird | LINK CHECKERS AbiLogicBot Link Valet Link Validity Check LinkExaminer LinksManager.com_bot Mojoo Robot Notifixious online link validator Ploetz + Zeller Reciprocal Link System PRO REL Link Checker Lite SiteBar Vivante Link Checker W3C-checklink Xenu Link Sleuth E-MAIL COLLECTORS EmailSiphon VALIDATORS CSE HTML Validator CSSCheck Cynthia HTMLParser P3P Validator W3C_CSS_Validator_JFouffa W3C_Validator WDG_Validator FEED READERS Awasu Bloglines everyfeed-spider FeedFetcher-Google GreatNews Gregarius MagpieRSS NFReader UniversalFeedParser LIBRARIES BinGet cURL Java libwww-perl Microsoft URL Control Peach PHP pxyscand PycURL Python-urllib CLOUD PLATFORMS AppEngine-Google OTHERS !Susie Amaya Cocoal.icio.us DomainsDB.net MetaCrawler gPodder GSiteCrawler iTunes lftp MetaURI MT-NewsWatcher Nitro PDF Snoopy URD-MAGPIE WebCapture Windows-Media-Player |