Skip to main content

Web Scraping with Camoufox and Cython+Pandas

Project description

🖥️ Pandas Color Printer & CamoufoxDf

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.1.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.1-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pandascamoufox-0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5659505308bbd1afbb7fe9ef5a97d9bfd0bf71e3f2dcb9ec73eb4d68d05baf6a
MD5 ce5dd6d223843727980b872fdcdb0376
BLAKE2b-256 5f7b0ae3566be81f796898cd36b0d12e7afe5fad74199acb4f6809ff32a8398f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pandascamoufox-0.1-py3-none-any.whl
  • Upload date:
  • Size: 28.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17290b60916d2be86976f7228477b5f47378214735b0f8df8c7d2d9324e638ff
MD5 a693c8555ece198aeb70489a1d38d675
BLAKE2b-256 2838d68808120cec17fb3b99beb7d989b20772089c9663eac41eaaa810425942

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