Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nitrocode/curl2.py
Converts curl statements to python using command line
https://github.com/nitrocode/curl2.py
chrome-devtools converts-curl-statements curl python
Last synced: 10 days ago
JSON representation
Converts curl statements to python using command line
- Host: GitHub
- URL: https://github.com/nitrocode/curl2.py
- Owner: nitrocode
- License: mit
- Created: 2016-02-16T23:28:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-04T19:25:27.000Z (almost 6 years ago)
- Last Synced: 2024-10-12T21:17:46.800Z (24 days ago)
- Topics: chrome-devtools, converts-curl-statements, curl, python
- Language: Python
- Homepage: https://bit.ly/2l8yswT
- Size: 17.6 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# curltopy
Converts curl statements from Chrome's DevTools or Firefox's Tools to executable python 2 and 3 compatible code.
I was inspired to write a command line version after seeing @NickCarneiro's web app on [curl.trillworks.com](http://curl.trillworks.com/).
## Install
pip install curltopy
## Usage
1. Open Chrome's DevTools or Firefox's Tools
2. Click on the Network tab
3. Navigate to a website
4. Right click on a call and click _Copy > Copy as cURL_
5. Here is a template. Replace the curl statement with the one captured from the browser.
curltopy 'curl "http://example.com" -H "Pragma: no-cache"' > runme.py
chmod +x runme.py
./runme.py