Giter Club home page Giter Club logo

oxygenpump's Introduction

Download all articles from Wikitravel in wikicode format.

Be responsible!
Overloading Wikitravel's servers is in the interest of nobody.
Don't run this script if a reasonably fresh dump is already available.
If you run it, make the dump public and be sure to give the link here:
http://wikitravel.org/en/Wikitravel_talk:How_to_re-use_Wikitravel_guides
The script takes about 14 days to download all articles.

Whatever you do with the data, conform to the data's license. See:
http://wikitravel.org/shared/How_to_re-use_Wikitravel_guides

Usage: groovy -classpath lib/nekohtml.jar:lib/xercesImpl.jar oxygenpump.groovy
Data is stored in the "wikicode" directory.

Author: Nicolas Raoul http://nicolas-raoul.blogspot.com

oxygenpump's People

Contributors

nicolas-raoul avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

oxygenpump's Issues

Skip locally existing article

It should skip download (and the download waiting, too) if the file already exists locally and is larger than empty.

Crashes on slashes in article names

It loks like it crashes on articles that have slash in them.

Caught: java.io.FileNotFoundException: wikicode/Afghanistan/Northeast.wikicode (No such file or directory)
at oxygenpump.getWikicode(oxygenpump.groovy:123)
at oxygenpump$_run_closure1.doCall(oxygenpump.groovy:111)
at oxygenpump.run(oxygenpump.groovy:106)

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.