Giter Site home page Giter Site logo

tmc's Introduction

tmc

Tesla Motor Club forum scraper.

Features

  • Scrape user info
  • Scrape posts by user, thread, or post ID
  • Retrieve sentiment for posts
  • Search threads & posts
  • Scrape recent posts
  • Upload scraped posts to a database
  • Search database for any date range, post ID, username, etc.
  • Export scraped posts to CSV

My current thinking is that if I just repeatedly scrape the recent posts page (https://teslamotorsclub.com/tmc/recent-posts/), that will provide the sufficient data to inform every other view (i.e. search by thread/poster/sentiment/keyword/etc.) in a database format. This strategy seems to be working so far.

Open questions:

  • how to handle deleted/edited posts?
  • How do we handle poll parsing? Do we even want to handle poll parsing? FWIW, I'm currently leaning towards no - both because it'd be a pain in the butt to keep updated and I'm not convinced there's much value in it.

TODO

  • My thoughts on handling deleted posts currently are twofold: step one, setting up a database that records only a post's ID and if it had been deleted at last check. This would not require changing the existing database, which I prefer as a solution because that database is constantly being written to. Might need to be expanded in the future if I decide to tackle edited posts, which carry their own questions (do they show up in recent posts, etc.) This has become more of a priority because deleted posts are always going to show as 'tbd' under the current logic because they can never be evaluated - just catching with try/excepts for now but more permanent solution is needed.
  • Re-scrape old posts to get "in reply to" value/fix message value (ugh)
  • Create some sort of automated daily DB dump solution.

Current Focus

  • Re-scraping old posts to get "in reply to" value/fix message value (ugh)
  • Adding "in reply to" logic to current scraping

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

tmc's People

Contributors

kcinnick avatar

Stargazers

 avatar

Watchers

 avatar  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.