This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[['http://www.uber.com/cities/akron', u'[[-81.19583129882812,41.24373975746002],[-81.31324768066406,41.250451272341486],[-81.4031982421875,41.25716209782705],[-81.54121398925781,41.25922682850892],[-81.62704467773438,41.229281845547625],[-81.7437744140625,41.19260637708049],[-81.76918029785156,41.134710325232795],[-81.77398681640625,40.98456328825827],[-81.68060302734375,40.824201998489876],[-81.58172607421875,40.707710007867334],[-81.26312255859375,40.718119379753475],[-81.12579345703125,40.826280356677124],[-81.10931396484374,41.08556197870254],[-81.19583129882812,41.24373975746002]]'], ['http://www.uber.com/cities/albuquerque', '[['], ['http://www.uber.com/cities/amarillo', u'[[-101.96823120117188,35.09631620868229],[-101.96823120117188,35.28486373980265],[-101.70318603515625,35.28486373980265],[-101.70318603515625,35.09631620868229],[-101.96823120117188,35.09631620868229]]'], ['http://www.uber.com/cities/ann-arbor', u'[[-83.8373565673828,42.22750046697999],[-83.83975982666016,42.309815415686664],[-83.8414 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creates an Array with Uber city url's and their corresponding coordinates | |
import requests | |
from lxml import html | |
import re | |
page = requests.get("https://www.uber.com/cities") | |
tree = html.fromstring(page.text) | |
# Add code here to automatically find the urls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creates an Array with Uber city url's and their corresponding prices | |
import requests | |
from lxml import html | |
import re | |
page = requests.get("https://www.uber.com/cities") | |
tree = html.fromstring(page.text) | |