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
Networktab - 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.1.0.tar.gz
(10.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autorequests-2.1.0.tar.gz.
File metadata
- Download URL: autorequests-2.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ee39f5fb6f3aa276a910405cb3709ad918b9318e5fd78f7320bf97424cab484
|
|
| MD5 |
94f7b36a48c30ba6d5ee1d2146b69e8e
|
|
| BLAKE2b-256 |
0e9e6f59fc27b58422bfd642ded3e4ba4f79de89ba77584ebd040e48e556b658
|
File details
Details for the file autorequests-2.1.0-py3-none-any.whl.
File metadata
- Download URL: autorequests-2.1.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4db8d474c085c78aff9e1b2e8c747078fa284077e4aa6172172cae2e1e9e241
|
|
| MD5 |
2738c314f2894138f65596330eb3e015
|
|
| BLAKE2b-256 |
7b4dfaec04b2d1148fb571feef1b21b715dadec301f6a9275a7893b3e49058c0
|