Skip to main content

selenium-fetch (This project has been moved to fetchdriver)

A simple module that lets you access the fetch API with selenium!

Why do I make this? just annoyed with cloudflare. It works best with undetected-chromedriver.

Installation

pip install selenium-fetch undetected-chromedriver

Example

from undetected_chromedriver import Chrome
from selenium_fetch import fetch, Options, get_browser_user_agent

LOGIN_PAGE_URL = "https://smekdong.com/login"
LOGIN_API_URL = "https://smekdong.com/api/login"
driver = Chrome(headless=False)
driver.get(LOGIN_PAGE_URL)
post_data = {
    'username': 'blaabla',
    'password': 'xxxx'
}
headers = {
    "user-agent": get_browser_user_agent(driver),
    'origin': 'https://smekdong.com',
    'referer': 'https://smekdong.com/',
}
options = Options(method="POST", headers=headers, body=post_data)
response = fetch(driver, LOGIN_API_URL, options)
print("Response:", response)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

selenium_fetch-0.1.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

selenium_fetch-0.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file selenium_fetch-0.1.2.tar.gz.

File metadata

  • Download URL: selenium_fetch-0.1.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for selenium_fetch-0.1.2.tar.gz
Algorithm Hash digest
SHA256 469af2c5580d30e1e9e70d39b9c4b7f2b09571e2389654eedd04a297ae93e0a6
MD5 f7b7d5b8219aa0ab9da65f2dbc789a3b
BLAKE2b-256 2d4536727382ba0577191849e9280939d64583f37a578252166997a772a89c0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for selenium_fetch-0.1.2.tar.gz:

Publisher: python-publish.yml on aprilahijriyan/selenium-fetch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file selenium_fetch-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: selenium_fetch-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for selenium_fetch-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 22b4e9051f856672cbef9c8772a442b84e2f3cdc20d3e7d73a384a742f8343e3
MD5 d010d212d752bfdfc5d91f95ab1ba9ad
BLAKE2b-256 c8496935938ce421944c4c03e4e4b22575cf62570aa97f417e7322e0603504cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for selenium_fetch-0.1.2-py3-none-any.whl:

Publisher: python-publish.yml on aprilahijriyan/selenium-fetch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page