 #  cURL to Python Converter

Convert cURL commands to Python code instantly with support for requests, httpx, aiohttp, and curl\_cffi

 

 ####  Copy as cURL from Browser

- [Chrome DevTools](https://scrapfly.io/blog/answers/how-to-copy-as-curl-with-chrome/)
- [Firefox DevTools](https://scrapfly.io/blog/answers/how-to-copy-as-curl-with-firefox/)
- [Safari DevTools](https://scrapfly.io/blog/answers/how-to-copy-as-curl-with-safari/)
- [Brave DevTools](https://scrapfly.io/blog/answers/how-to-copy-as-curl-with-brave/)
- [Edge DevTools](https://scrapfly.io/blog/answers/how-to-copy-as-curl-with-edge/)
 
 

####  Supported Libraries

- [requests - Simple &amp; Popular](https://scrapfly.io/web-scraping-tools/curl-python/requests)
- [httpx - Modern Async](https://scrapfly.io/web-scraping-tools/curl-python/httpx)
- [aiohttp - High Performance](https://scrapfly.io/web-scraping-tools/curl-python/aiohttp)
- [curl\_cffi - TLS Fingerprinting](https://scrapfly.io/web-scraping-tools/curl-python/curl_cffi)
 
 

####  Quick Examples

- [Simple GET request](https://scrapfly.io/javascript:void(0))
- [With custom headers](https://scrapfly.io/javascript:void(0))
- [POST with JSON data](https://scrapfly.io/javascript:void(0))
- [With authentication](https://scrapfly.io/javascript:void(0))
- [With cookies](https://scrapfly.io/javascript:void(0))
 
 

 

  [requests](https://scrapfly.io/web-scraping-tools/curl-python/requests) [httpx](https://scrapfly.io/web-scraping-tools/curl-python/httpx) [aiohttp](https://scrapfly.io/web-scraping-tools/curl-python/aiohttp) [curl\_cffi](https://scrapfly.io/web-scraping-tools/curl-python/curl_cffi) 

 ###  Paste your cURL Command



  

 ####  🌐 requests - Simple and elegant HTTP library 

 

   

 [  GitHub Repository ](https://github.com/psf/requests) [  Documentation ](https://requests.readthedocs.io/en/latest/) [  PyPI Package ](https://pypi.org/project/requests/) 

 

 

  ###  Need Help?

 Learn more about [using cURL for web scraping](https://scrapfly.io/blog/posts/how-to-use-curl-for-web-scraping) or explore our [guide to cURL with JSON](https://scrapfly.io/blog/posts/how-to-curl-json). Found a bug or something missing? [Contact our support team](https://scrapfly.io/docs/support#contact) or [contribute on GitHub](https://github.com/scrapfly).

 

---

## Learn Web Scraping With Python

 [ Introduction tutorial to web scraping with Python. How to collect and parse public data. Challenges, best practices and an example project.

 

 

 ](https://scrapfly.io/blog/posts/web-scraping-with-python/ "Python Web Scraping Tutorial and Example Project") 

 [ Tutorial on web scraping with scrapy and Python through a real world example project. Best practices, extension highlights and common challenges.

 

 

 ](https://scrapfly.io/blog/posts/web-scraping-with-scrapy/ "Web Scraping With Scrapy: The Complete Guide") 

 [ BeautifulSoup is one of the most popular libraries used in web scraping. It's used to parse HTML documents for data either through Python scripting or the use of CSS selectors.

 

 

 ](https://scrapfly.io/blog/posts/web-scraping-with-python-beautifulsoup/ "Web Scraping with Python and BeautifulSoup")