I gang

Write a scraper for [url removed, login to view] schedules and fares

We need to build a python-based scraper of schedules and fares from gotobus.com.

A typical search query looks like:

[url removed, login to view]

Your job will be to build a function

def createListOfRoutes(dt, departure_request_code, arrival_request_code):

that returns an array of schedules and fares.

Example inputs:

dt = [url removed, login to view](2013,1,25)

departure_request_code = 'Orlando, FL'

arrival_request_code = 'New York, NY'

Example outputs:

[

{

'price': 60.0, # a float

'book_string' : '22343', # This is the pid number that is found in the page's source

'legs' : [{

'routeName' : 'Star Line Express', # from the "Bus Operator" column

'mode' : 'bus', # this will always be "bus"

'departure_result_code' : '230789', # the station code embedded in the station url, e.g. [url removed, login to view]

'arrival_result_code' : '230782', # the station code embedded in the station url

'departureTime' : [url removed, login to view](2013, 1, 25, 15, 45),

'arrivalTime' : [url removed, login to view](2013, 1, 26,11, 15),

}]

},

...

]

Some notes:

* Only scrape one-way trips. Don't worry about roundtrips.

* Prefer that the HTML parsing be done with lxml.

* All code *must* be in python.

Færdigheder: Python, Web Skrabning

Se mere: gotobus, job web scraping python, job search orlando, g star, g.e. com, com a, a new mode, python html parsing, job search operator, write query, scraping python, scrape python, python scraping, fares, DT, always write, python scrape web, build web scraper, date scraper, python option, web query python, python scraping web page, write function python, scraper code, python page scraping

Om arbejdsgiveren:
( 2 bedømmelser ) Norwalk, United States

Projekt-ID: #4075202

Tildelt til:

Blender3D

Hello. I've been working professionally with Python for about five years now and have done numerous web scraping projects. I have a few questions for you, so if you could check your PMB, I would appreciate it. My bid p Mere

$150 USD in 7 dage
(20 bedømmelser)
5.4

7 freelancere byder i gennemsnit $230 for dette job

bksriharsha

Hi , I am interested in taking this project. Please check my PMB for more details.

$400 USD in 5 dage
(11 bedømmelser)
5.8
cheapexcell

Hello, I am an expert in web scraping with over 5 years of experience. Let's get started. Thanks, Alex

$230 USD in 5 dage
(28 bedømmelser)
5.4
eghlima

hi dear, I am expert in python and scripting and web scrapping. I can do this.

$100 USD på 1 dag
(19 bedømmelser)
4.6
ovs22

I have experiece developing web scarping jobs.

$200 USD in 7 dage
(5 bedømmelser)
3.7
spiderman28vn

Hi, I have strong experience with Python and Lxml. I'm willing to start right away. Please kindly check PM. Thanks

$200 USD in 5 dage
(2 bedømmelser)
3.4
perazzo

Hi. I have developed some projects with scraping in python and in college and did projects about scraping in python.

$250 USD in 7 dage
(0 bedømmelser)
0.0
BogdanLancer

I am here to do the job for you and deliver the best quality. Please read PMB for further details.

$180 USD in 5 dage
(0 bedømmelser)
1.8