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?

16
  • 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
    Commented Oct 11, 2015 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
    Commented Oct 11, 2015 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. Commented Oct 11, 2015 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
    Commented Oct 11, 2015 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
    Commented Oct 11, 2015 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? Commented Oct 11, 2015 at 6:08
  • @BrockAdams; not on this site - and I use discretion
    – JMP
    Commented Oct 11, 2015 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. Commented Oct 11, 2015 at 6:26
  • @BrockAdams; thanks, but how do i connect to the SE server?
    – JMP
    Commented Oct 11, 2015 at 6:35
  • Standard AJAX request. See stackapps.com/questions/4511/… Commented Oct 11, 2015 at 6:37
  • @BrockAdams; don't want to state the obvious, but isn't AJAX server-side?
    – JMP
    Commented Oct 11, 2015 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. Commented Oct 11, 2015 at 6:40
  • @BrockAdams; and do you have a particular program to do this, say your personnel favorite?
    – JMP
    Commented Oct 11, 2015 at 6:41
  • Let us continue this discussion in chat. Commented Oct 11, 2015 at 6:42
  • @BrockAdams; actually I think I have resolved the issue. thanks for your help
    – JMP
    Commented Oct 11, 2015 at 6:43

0

You must log in to answer this question.

Browse other questions tagged .