Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 15
Posts: 15   Pages: 2   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4959 times and has 14 replies Next Thread
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: API for devices list

"First all I wanted was to scrape the data from My Contribution in two ways:"

Likely you know, but this has an API since a few years accessible via membername/verification code... no 'scraping' needed. The pull allows splitting the project stats, the totals/rankings, the average and the base member info-
[May 23, 2019 1:12:53 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: API for devices list

Hi lavaflow,

While it's true that you can get the "My Contribution" page data via the API, I've not found that it's possible to get the historic data pages, namely the "My Contribution History" or the "Device Statistics History" page data via API. Those only seem possible via screen scrape. If you've discovered a method to get these two via the API, that would be great! I'd really prefer not to have to resort to screen scraping if at all possible. smile

Best,

-mark
[May 24, 2019 3:29:55 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: API for devices list

3 have been on my API wish-list for longer, MC history Statistics, Device Profile Manager device listing and Device Statistics. Those require scrape, which suffer frequent time out, and thus looped with a back-off delay not to trigger WCG's bot protection.
[May 24, 2019 9:36:22 AM]   Link   Report threatening or abusive post: please login first  Go to top 
adriverhoef
Master Cruncher
The Netherlands
Joined: Apr 3, 2009
Post Count: 2346
Status: Recently Active
Project Badges:
Reply to this Post  Reply with Quote 
Re: API for devices list

"First all I wanted was to scrape the data from My Contribution in two ways:"

Likely you know, but this has an API since a few years accessible via membername/verification code... no 'scraping' needed. The pull allows splitting the project stats, the totals/rankings, the average and the base member info-

It's amazing how this failed to attract my attention over the years. I could also note - when I tried this API call at 00:34:00 UTC, while the My Contribution page just said "The statistics update will finish in about 100 minutes 31 seconds ." - that the API call was already able to tell me my new contribution statistics (e.g. that I moved one place ahead in RunTime - from #1383 to #1382 - as well as in Points - from #400 to #399).

What also could be noticed is that this API call doesn't list the team totals (see "My Team"), it just lists your own contribution to the teams in which you ever participated.

Nevertheless, this is nice to know, so I've added the option -S to wcgresults to retrieve these statistics through the API in XML format. cool

As a team captain, to retrieve your team's totals, you still need to scrape the website to retrieve these statistics.
----------------------------------------
[Edit 2 times, last edit by adriverhoef at May 25, 2019 1:04:44 AM]
[May 25, 2019 12:43:55 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: API for devices list

Good for you and at that you get 'your' team history to boot.

The API data call is never locked, bar for maintenance. Theoretically you can test on a timer if an A selected value has changed, and then process the rest of your scripts the moment the change has happened and then auto-publish.

BTW the team data is exported every (24 hours?) and only for the BOINC credits, not the legacy points. It's a big xml. BOINCStats says the Team data was last pulled 2019-05-24 23:38:01 UTC (08:40:12 old)
----------------------------------------
[Edit 3 times, last edit by Former Member at May 25, 2019 10:51:19 AM]
[May 25, 2019 10:47:22 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 15   Pages: 2   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Post new Thread