Generate Python code to recreate a request from your browser.
Project description
AutoRequests
Generate Python code to recreate a request from your browser.
📺 Demo
💼 Example Use Cases
- Creating a foundation for an API wrapper
- Recreating a request outside the browser
- Testing what cookies or headers are required for a server to understand your request
✂️ How to Copy
- Inspect Element
- Go to
Network
tab - Find web request
- Right-Click
- Copy
- Choose one of the following:
- Powershell
- Node.js fetch
📦 Installation
install the package with pip
$ pip install autorequests
or download the latest development build from GitHub
$ pip install -U git+https://github.com/Hexiro/autorequests
🖥️ Command Line
$ autorequests --help
Meta Options
--file -f Optional file to read input from.
--copy -c Copy the output to the clipboard
generation options
-sync/--async -s/-a Generate synchronous or asynchronous code.
--httpx -h Use httpx library to make requests.
--no-headers -nh Don't include headers in the generated output.
--no-cookies -nc Don't include cookies in the generated output.
🐞 Contributing
see CONTRIBUTING.md
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
autorequests-2.0.0.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for autorequests-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2afa77f5ab8b5fb45cf33db7a295fd007a210538d6aaa5f7245cb17f30836387 |
|
MD5 | 9b268b00e690fda4a2302f1cb56af743 |
|
BLAKE2b-256 | d6bae4974b53781828b65657c732c92f516e3acaebce9658410e5f7b451de32f |