bcoe / wikifetch

Uses jQuery to return a structured JSON representation of a Wikipedia article.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error 403

Kamek opened this issue · comments

When running the example I get error 403:
wikifetch --article=Dogs
Fetching article Dogs.
Could not fetch article: 403

Is there a way around this?

403 is the error given when an article does not exist. The article is actually called Dog not Dogs

The example should be:

wikifetch --article=Dog

I've updated the documentation.

Hmm I still get 403's on alot of pages, like Computer_Programming or Hitler. What constitutes an article? I would think anything after http://en.wikipedia.org/wiki/ that is a page would be an article like http://en.wikipedia.org/wiki/Computer_Programming for instance.

The URL Computer_Programming, actually redirects to Computer_programming, wikifetch doesn't follow the redirect. I'll keep this ticket open, and look into making wikifetch follow these redirects.

Awesome that would be great!