Ejemplo n.º 1
0
#!/usr/bin/env python
from apartment_finder.data_collection.craigslist_rss import AptFeed

if __name__ == '__main__':

    # this forces the listing to have a picture AND square footage
    # consider changing to allow for no square footage...much harder
    # to extract bedroom and size metrics..but may lose some gems

    parser = AptFeed('', '', '~/proxies', 'apartment_listings','an0nym1ty' )
    parser.archive()
Ejemplo n.º 2
0
#!/usr/bin/env python
from apartment_finder.data_collection.craigslist_rss import AptFeed

if __name__ == '__main__':

    # this forces the listing to have a picture AND square footage
    # consider changing to allow for no square footage...much harder
    # to extract bedroom and size metrics..but may lose some gems

    link = r'https://newyork.craigslist.org/search/aap?format=rss&hasPic=1&minSqft=1'
    parser = AptFeed(link, '~/img', '~/proxies', 'apartment_listings','an0nym1ty' )
    parser.process_feed()