예제 #1
0
def func_9():
    crawler = GMapsCrawler(debug=False, delay=5)
    places = crawler.get_places('seattle century link field')
    print('')
    print(places)
예제 #2
0
def func_8():
    crawler = GMapsCrawler(debug=False, delay=5)
    places = crawler.get_places('petrolina pizzaria recanto pastelaria')
    print('')
    print(places)
예제 #3
0
def func_1():
    crawler = GMapsCrawler(debug=False, delay=5)
    places = crawler.get_places('estatua da liberdade')
    print('')
    print(places)
예제 #4
0
def func_6():
    crawler = GMapsCrawler(debug=False, delay=5)
    places = crawler.get_places('milwaukee art museum')
    print('')
    print(places)
예제 #5
0
def func_7():
    crawler = GMapsCrawler(debug=False, delay=5)
    places = crawler.get_places('chicago field museum')
    print('')
    print(places)
예제 #6
0
def func_5():
    crawler = GMapsCrawler(debug=False, delay=5)
    places = crawler.get_places('torre de toquio')
    print('')
    print(places)
예제 #7
0
def func_4():
    crawler = GMapsCrawler(debug=False, delay=5)
    places = crawler.get_places('muralha da china')
    print('')
    print(places)
예제 #8
0
def func_3():
    crawler = GMapsCrawler(debug=False, delay=5)
    places = crawler.get_places('cristo redentor')
    print('')
    print(places)
예제 #9
0
def func_2():
    crawler = GMapsCrawler(debug=False, delay=5)
    places = crawler.get_places('hollywood sigh')
    print('')
    print(places)
from gmapscrawler.gmapscrawler import GMapsCrawler

if __name__ == '__main__':

    # GMapsCrawler instatiation
    crawler = GMapsCrawler(debug=True)

    # example of a search string
    search_str = 'pizzaria petrolina'

    # uses search string to get a list titles
    titles = crawler.get_titles(search_str)
    print(titles)

    # uses search string to get a list of detailed places
    places = crawler.get_places(search_str)
    print(places)