1

I want to write a script to collate all bounty questions from all Stack Exchange sites.

I have heard of Tampermonkey and I have no server access.
Could someone explain how I should go about writing a script with read-only access to SE sites, bot them all for their bounty questions and then present the information in a method I can interpret?

Much thanks in advance.

  • I think that the database is updated once a week, so not a good option. Never tried anything with bounties using the API but should be the way to go. Check the frontpage right column: Get Started. You'll be able to query the API online. – brasofilo Oct 11 '15 at 5:16
  • @brasofilo; is there a preferred method to query the database, e.g. CVS, SSH, Powerpoint(?) - does SE have a comm-query program? – JMP Oct 11 '15 at 5:24
  • Why do you want this? Is it just to collect data or do you want to try and pounce on those bounties while they are still fresh? ... The former is easy, the latter requires looping through up to 300 sites. ... What about meta sites? Non-English sites? Etc. This question is too vague in its current form. – Brock Adams Oct 11 '15 at 6:01
  • @BrockAdams; to find available bounties automatically without having to trawl through all 300 sites manually, or guessing where the rep is at – JMP Oct 11 '15 at 6:02
  • @BrockAdams; i've got another idea as well - in order to get Civic Duty badges i've been religiously voting on sites - something i feel could also be automated – JMP Oct 11 '15 at 6:05
  • You cannot automate voting with read-only access. ... Also, are you the guy that's been upvoting every question on this site, including real turkeys that are closed and should be burned with holy fire? – Brock Adams Oct 11 '15 at 6:08
  • @BrockAdams; not on this site - and I use discretion – JMP Oct 11 '15 at 6:08
  • Anyway, this is not particularly hard. Basically, your app would loop through your list of sites and call /questions/featured for each one. You'd want to filter and cache the results but no server is required. – Brock Adams Oct 11 '15 at 6:26
  • @BrockAdams; thanks, but how do i connect to the SE server? – JMP Oct 11 '15 at 6:35
  • Standard AJAX request. See stackapps.com/questions/4511/… – Brock Adams Oct 11 '15 at 6:37
  • @BrockAdams; don't want to state the obvious, but isn't AJAX server-side? – JMP Oct 11 '15 at 6:39
  • No. The whole point is that it's client side. But it does fetch data from a server. It's pretty basic and usually well documented in whatever language you program in. – Brock Adams Oct 11 '15 at 6:40
  • @BrockAdams; and do you have a particular program to do this, say your personnel favorite? – JMP Oct 11 '15 at 6:41
  • Let us continue this discussion in chat. – Brock Adams Oct 11 '15 at 6:42
  • @BrockAdams; actually I think I have resolved the issue. thanks for your help – JMP Oct 11 '15 at 6:43

You must log in to answer this question.

Browse other questions tagged .