Skip to content

Mobile XPath Support and Agoda 90-Day Scraper#36

Open
ToufiqQureshi wants to merge 2 commits intomainfrom
mobile-xpath-agoda-scraper-10757030110318602849
Open

Mobile XPath Support and Agoda 90-Day Scraper#36
ToufiqQureshi wants to merge 2 commits intomainfrom
mobile-xpath-agoda-scraper-10757030110318602849

Conversation

@ToufiqQureshi
Copy link
Owner

Bhai, Agoda jaise apps ke liye maine chuscraper ko upgrade kar diya hai. Ab aap bina ID ke bhi XPath aur "Smart Search" se elements dhoond sakte hain. Maine ek poora 90-day scraper script bhi examples/ mein dal diya hai jo prices nikal ke CSV mein save karega.

Changes:

  1. XPath Support: Ab aap device.find_element(xpath="//node[contains(@text, 'AED')]") use kar sakte hain.
  2. Smart Search: device.find_element(query="Search") likhne se wo apne aap text aur IDs check kar lega.
  3. Wait for Element: App loading ke liye device.wait_for_element() add kiya hai.
  4. Agoda Example: examples/agoda_90day_scraper.py mein pura logic hai.

Ab aap Agoda app ko easily scrape kar payenge!


PR created automatically by Jules for task 10757030110318602849 started by @ToufiqQureshi

- Implemented XPath support in `MobileDevice` using `lxml`.
- Added `wait_for_element` for better stability in mobile automation.
- Introduced `query` parameter for 'smart search' (matches text, content-desc, or resource-id).
- Improved `MobileElement` bounds parsing with regex for robustness.
- Added `examples/agoda_90day_scraper.py` demonstrating 90-day price scraping.
- Added unit tests for new mobile finding capabilities.

Co-authored-by: ToufiqQureshi <139612256+ToufiqQureshi@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel
Copy link

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chuscraper Ready Ready Preview, Comment Mar 2, 2026 4:27pm

- Restored backward compatibility for `MobileDevice.dump_hierarchy()`.
- Added `dump_raw_hierarchy()` for raw XML access.
- Implemented `get_clickable_elements()` for UI inspection.
- Improved `MobileElement.type()` with `clear` logic using ADB keycodes.
- Refined Agoda 90-day scraper example with precise XPath indexing.
- Verified all features with comprehensive unit tests.

Co-authored-by: ToufiqQureshi <139612256+ToufiqQureshi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant