Find Jobs
Hire Freelancers

build scraper for us.megabus.com (1360303)

$30-100 USD

Cancelled
Posted about 14 years ago

$30-100 USD

Paid on delivery
require python code to scrape bus schedules and fares from [login to view URL] ## Deliverables This project will require you to use cookies to scrape [login to view URL]'s ASP.NET site. You should use the **lxml** library ([login to view URL]) for scraping. This is a fast library similar to python's built-in ElementTree. Deliverable contains a function: **createListOfRoutes(dt, departure_request_code, arrival_request_code)** where * **dt** is a [login to view URL] date of departure * **departure_request_code** indicates the departure station (e.g., for MegaBus, New York's departure_request_code is "37") * **arrival_request_code** indicates the arrival station createListOfRoutes returns an array of all one-way schedules and prices for the search day. Each schedule/price option is a dictionary in the following format: { 'price': 9.0, 'book_string' : '.', 'legs' : [{ 'routeName' : 'MegaBus NE', 'mode' : 'bus', 'departure_result_code' : 'New York, Penn Station 31st St. and 8th. Ave', 'arrival_result_code' : 'Boston, South Station', 'departureTime' : [login to view URL](2010, 4, 8, 1, 30), 'arrivalTime' : [login to view URL](2010, 4, 8, 5, 45), 'provider' : '' }] } Note that 'book_string' should always be '.' (a period), 'mode' should always be 'bus' and 'provider' should always be '' (empty string). Also, please note that routeName should change based on the route.
Project ID: 3231513

About the project

2 proposals
Remote project
Active 14 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $91 USD for this job
User Avatar
See private message.
$102 USD in 14 days
5.0 (114 reviews)
7.7
7.7
User Avatar
See private message.
$80.75 USD in 14 days
3.1 (3 reviews)
2.7
2.7

About the client

Flag of UNITED STATES
Norwalk, United States
5.0
2
Payment method verified
Member since Mar 25, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.