Skip to main content

Web Scraping with Camoufox and Cython+Pandas

Project description

🖥️ Pandas Color Printer & CamoufoxDf

pip install pandascamoufox

This project provides:

  • CamoufoxDf wrapper: Extract DOM elements from a Camoufox browser session into a Pandas DataFrame, including both element attributes and bound methods for direct interaction (e.g., click, hover, type).

✨ Features

  • Use CamoufoxDf to fetch DOM elements into a DataFrame with:
    • All element attributes (id, classes, styles, geometry, dataset, etc.)
    • Pre-bound executable methods (click, hover, type, screenshot, etc.)

⚠️ Important Notes

  • Does not work inside IPython or Jupyter Notebook This is due to async conflicts between IPython and Camoufox (Playwright). Attempting to run inside IPython will result in event-loop errors.

  • Recommended Environment To use this effectively, run it inside:


🚀 Usage

from pandascamoufox import CamoufoxDf
from camoufox.utils import DefaultAddons

cfox = CamoufoxDf(
    humanize=False,
    headless=False,
        **{"exclude_addons": [DefaultAddons.UBO]}
)

cfox.page.goto("https://bet365.com")
df = cfox.get_df("*")
print(df)

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

pandascamoufox-0.12.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

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

pandascamoufox-0.12-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file pandascamoufox-0.12.tar.gz.

File metadata

  • Download URL: pandascamoufox-0.12.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.9

File hashes

Hashes for pandascamoufox-0.12.tar.gz
Algorithm Hash digest
SHA256 a437c4c3ecab7b949cd188ea7457b9cef08e5bfa3d63c43c9689b7b522b4cee9
MD5 f67c0686588eb2af86b6a8ab075aa2d5
BLAKE2b-256 2e6949ef68e5a75b10ecc9f23f5c7fb00c7a11f4f5dd94d4cfa8b0abf3f19c0e

See more details on using hashes here.

File details

Details for the file pandascamoufox-0.12-py3-none-any.whl.

File metadata

  • Download URL: pandascamoufox-0.12-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.9

File hashes

Hashes for pandascamoufox-0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 09a1ef60de9aeee52800505c3678d0d9641d1ac1f94babd00a33e21ec9dbf427
MD5 26ab7816808c68f3a612b2a890c4c89c
BLAKE2b-256 38b5d20a81b210d9c864d945016a8fece3ed0c4f000a9af34636d6397de573c6

See more details on using hashes here.

Supported by

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