Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hexiro/autorequests
Generate Python code to recreate a request from your browser.
https://github.com/hexiro/autorequests
code-generation developer-tools pypi python
Last synced: 9 days ago
JSON representation
Generate Python code to recreate a request from your browser.
- Host: GitHub
- URL: https://github.com/hexiro/autorequests
- Owner: hexiro
- License: mit
- Created: 2020-12-24T04:52:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-24T20:31:41.000Z (almost 2 years ago)
- Last Synced: 2024-10-16T23:15:52.604Z (20 days ago)
- Topics: code-generation, developer-tools, pypi, python
- Language: Python
- Homepage:
- Size: 447 KB
- Stars: 28
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
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
1. Inspect Element
2. Go to `Network` tab
3. Find web request
4. Right-Click
5. Copy
6. Choose one of the following:
1. Powershell
2. 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
```console
$ autorequests --help
```Meta Options
```console
--file -f Optional file to read input from.
--copy -c Copy the output to the clipboard
```Generation options
```console
-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](./CONTRIBUTING.md)