Code Monkey home page Code Monkey logo

ffscraper's Introduction

GitHub followers

I'm a Ph.D. student by day and a software engineer by the cover of night. My research focuses on Statistical Relational Learning (STARAI) and its applications to Health Informatics problems.

  • ๐Ÿ”ง Building tools to make STARAI more accessible. See my progress in the srlearn organization
  • โœ๏ธ Writing longer discussions on my blog
  • ๐Ÿ‘๏ธ Learning about computer vision
Currently Reading Dog Tax
The  dispossessed: a novel Ronin
The dispossessed: a novel Ronin
by: Ursula K. Le Guin

ffscraper's People

Contributors

dependabot[bot] avatar hayesall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kailanak1

ffscraper's Issues

CLI Redesign

The design of ffscraper/__main__.py is starting to show some flaws, and its current state will become more difficult to maintain as more features are added.

  • Crash-proofing: pickle intermediate outputs, trigger certain actions based on the contents of the log file.
  • Outputs need to be rethought; currently there are special functions (schemaString and Utils.PredicateLogicBuilder) for converting values to a representation that is written to files. A more powerful design would involve a standard internal representation of the data that would be converted to the necessary format before being written to disk, regardless of whether that output format was BoostSRL, Cytoscape, JSON, or SQL.
  • Replace the progress module with something like tqdm, perhaps with a flag for silencing the progress bar (if the process is sent to the background, for instance).
  • Three "phases" exist for scraping stories, ordering them with respect to time, and scraping users. These phases should be split into functions, or written in a way that makes it more obvious what information is needed in which phase. For instance: Phase I needs a list of story-ids, Phase III needs a list of user-ids, etc.

Unhandled Exception in /s/12242141

Currently an exception is raised when parsing the contents of /s/12242141, resulting in remaining sids being dumped to a file.

Produced with:

$ echo "12242141" > sid.txt
$ python scraper/Scraper.py -f sid.txt

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.