This is a scraper for DBA (the blue newspaper - in danish) It is a danish version of ebay, also might have been previously owned by ebay.
The scraper is able to fetch information about products given a text from the main page.
For instance to get all furniture in Copenhagen area in the price range of 0 to 100 kroner sorted by newest:
page = requests.get(
url = 'https://www.dba.dk/til-boligen/spise-og-dagligstuemoebler/',
params = {
"reg": "koebenhavn-og-omegn",
"pris": "(0-100)",
"sort": "listingdate-desc", # "price", "price-desc" "listingdate"
},
)
print(json.dumps(scrape_dba_list(page), indent=2))
β οΈ At the moment the login functionality is not implemented so both extre features does not work.
It is possible to find more information about the seller if they show their phone number. This can be used to get the coordinates to the pickup location (assuming the sellers address is the pickup location)
With the send message feature you can send a message about a product automatically.
- Implement login functionality to get send message feature and to be able to get phone numbers from users.
- Consider reimplementing in golang
- Write tests or examples