Skip to content

kiki407/daftlistings

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daftlistings

A web scraper for daft.ie

Install

pip install daftlistings

Example

from daftlistings import Daft

d = Daft()
offset = 0
pages = True

while pages:

    listings = d.get_listings(
        county='Dublin City',
        area='Dublin 15',
        offset=offset,
        listing_type='properties'
    )

    if not listings:
        pages = False

    for listing in listings:
        print listing.get_agent_url()
        print listing.get_price()
        print listing.get_formalised_address()
        print listing.get_daft_link()
        print ' '


    offset += 10

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%