GithubHelp home page GithubHelp logo

zicog / parallax-scrape Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 204 KB

Download a forum page or multiple pages from forums.parallax.com and extract posts as plain text.

License: MIT License

JavaScript 100.00%

parallax-scrape's Introduction

parallax-scrape

node.js program to Download a single or multiple forum pages from forums.parallax.com and extract posts as plain text.

  • The url of the page(s) and any page range to download are commandline arguments
  • The text of posts is reformatted to 80 column width.
  • Quote blocks within posts are indented for clarity.
  • Code blocks within posts are output as is, no reformatting.
  • Links to attachments to posts are extracted.
  • Thread text goes to standard output.
  • All attachedments are downloaded.

Install

First install node.js. Linux, Mac and Windows node.js downloads are available here: http://nodejs.org/ You can get parallax-scrape from a zip file on github or fetch it as a git repo:

$ git clone https://github.com/ZiCog/parallax-scrape.git

A few node.js modules are required:

$ cd parallax-scrape
$ npm install request
$ npm install htmlparser2
$ npm install ent

Run

Fetch individual pages by just giving the url:

$ node parallax-scrape http://forums.parallax.com/showthread.php/149173-Forum-scraping/page2

Missing the page number off the end of the URL will get the first page.

Fetch multiple pages by adding a first page and last page parameters;

$ node parallax-scrape http://forums.parallax.com/showthread.php/149173-Forum-scraping 3 9

In this case the page parameters override any "/pagex" in the URL.

TODO

0) Better output format.

parallax-scrape's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

massman

parallax-scrape's Issues

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.