Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export the results to csv #2

Open
martgnz opened this issue Jul 24, 2014 · 4 comments
Open

Export the results to csv #2

martgnz opened this issue Jul 24, 2014 · 4 comments

Comments

@martgnz
Copy link

martgnz commented Jul 24, 2014

It would be awesome to export the results of our queries to a csv file, just in case :)

@volpino
Copy link
Owner

volpino commented Jul 27, 2014

I thought about it but it's not trivial to have the results flatten but keeping them readable. I don't think a CSV is the best format for that.

JSON is probably more readable and easier, and if you want a CSV you can always build one from the JSON output. You can access the API here for example http://wikiwatchdog.com/watchdog.py?domain=cia.gov

What do you think? In the case you still prefer a CSV, which information would you like in there? Which would be a possible header you'd like?

@martgnz
Copy link
Author

martgnz commented Jul 27, 2014

Thanks for the link, I was wondering how to access the API. Maybe you could add a link to each result with the JSON file in the web interface? I can fill another issue.

I like all the information the JSON file gives, is fine for me :)

@martgnz
Copy link
Author

martgnz commented Jul 27, 2014

One more question, how can I access to the JSON for different languages than English?

@volpino
Copy link
Owner

volpino commented Jul 27, 2014

Short answer: use the "lang" option like http://wikiwatchdog.com/watchdog.py?domain=cia.gov&lang=it

Longer answer: You can find a complete explanation by clicking on the "More info..." link in the main page (right column) http://wikiwatchdog.com/
The links are still wrong, I need to fix them after the migration from toolserver to wikimedia labs, however everything else should be ok.

About the link you can easily compute it http://wikiwatchdog.com/#!search/:lang/:domain/:pageid/:revisionid
i would prefer not to add it to the output because it would make it much bigger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants