Skip to content

Commit

Permalink
feat: add airbnb scraper (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardofelgueiras authored Jul 31, 2024
1 parent 0effc1c commit 43bd12f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/scrappers/airbnb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
url: https://www.airbnb.com*
listElementsQuery: '[itemprop="itemListElement"]'
elementParser:
- title: Title
query: '[data-testid="listing-card-title"]'
type: text

- title: Sub-title
query: '[data-testid="listing-card-subtitle"]'
type: text

- title: Price per night
query: '[data-testid="price-availability-row"] > .dir-ltr > div > div > span > div'
type: text

- title: Price total
query: '[data-testid="price-availability-row"] > .dir-ltr > div > div > span:nth-child(3) > div > button > div > div'
type: text

- title: Link
query: '[data-testid="card-container"] > a'
type: clean-url

0 comments on commit 43bd12f

Please sign in to comment.