Code Monkey home page Code Monkey logo

orcascraper's Introduction

OrcaScraper

This project allows you to scrape the data from your ORCA cards on https://orcacard.com/ into a JSON file.

By default it grabs all transactions for a given year, but it's possible to give it any start and stop date. It will grab transactions for every ORCA card in your account, collecting all into the same array, but with the card's serial number stored with each transaction. The data will likely need to be cleaned up and filtered in a separate program to make it useful.

How To Run

Ensure you have Python, pip, and pipenv installed on your computer. Then, inside the project, install dependencies with:

pipenv install

Then, run the project:

# Grab all transactions for current calendar year.
pipenv run scrapy crawl orca -o out.json -a username=yourusername -a password=yourpass
# Grab all transactions for a given calendar year.
pipenv run scrapy crawl orca -o out.json -a username=yourusername -a password=yourpass -a year=2019
# Grab all transactions for a given date range
pipenv run scrapy crawl orca -o out.json -a username=yourusername -a password=yourpass -a startdate="Mar 1 2020" -a enddate="Aug 29 2020"

Set yourusername and yourpass to your orcacard.com username and password. You may omit pipenv run by first running pipenv shell before your commands.

Output file can be changed by adjusting out.json. Supported file times are csv, json, and xml.

orcascraper's People

Contributors

danielhep avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.