Skip to main content

Generate Python code to recreate a request from your browser.

Project description

AutoRequests

Generate Python code to recreate a request from your browser.
GitHub Workflow Status

📺 Demo

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

$ 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 hashes)

Uploaded Source

Built Distribution

autorequests-2.1.0-py3-none-any.whl (12.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page