Sedang Disiapkan

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.

Kemahiran: Python, Pengikisan Web

Lihat lebih lanjut: 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

Tentang Majikan:
( 2 ulasan ) Norwalk, United States

ID Projek: #4075202

Dianugerahkan kepada:

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 Lagi

$150 USD dalam 7 hari
(20 Ulasan)
5.4

7 pekerja bebas membida secara purata $230 untuk pekerjaan ini

bksriharsha

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

$400 USD dalam 5 hari
(11 Ulasan)
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 dalam 5 hari
(28 Ulasan)
5.4
eghlima

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

$100 USD dalam sehari
(19 Ulasan)
4.6
ovs22

I have experiece developing web scarping jobs.

$200 USD dalam 7 hari
(5 Ulasan)
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 dalam 5 hari
(2 Ulasan)
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 dalam 7 hari
(0 Ulasan)
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 dalam 5 hari
(0 Ulasan)
1.8