Python Script Error Fix

Job ID: 38124515

Budget: $10 – $30 USD

My Python script is intended to scrape specific Telegram groups, but it's not functioning as expected. I need a developer to address these issues, described below.

- **Issue Description**:
The script is crashing when scraping certain Telegram groups, which is likely due to the fact that it's not respecting selections. The error presented is “ AttributeError: 'MessageMediaWebPage' object has no attribute 'document'”
I can provide the script if you want to check how it’s working. I am open to a whole new script being made. So long as it functions in a similar way.
If not familiar you can view telethon api

https://docs.telethon.dev/en/stable/concepts/full-api.html

- **Expected Behavior**:
The scraping script is supposed to collect data that matches specific regex patterns. This means that it's not just supposed to collect all messages or only new messages since the last run, but rather those that align with the predefined regex matches. It should give me the option to select which groups get scraped, how far back it crawls back and download/read/regex match/save data.

I'm looking for a Python guy who can help me rectify these problems and ensure the script runs efficiently. Experience with Telegram/telethon API, regex, and web scraping is crucial for this task.

So if you're a Python developer with previous experience in fixing script errors, particularly in the context of web scraping, I'd love to hear from you.
Related categories: Python Web Scraping Telegram API