** Solved ** Retrieving donations made to each project, via code/XML files?

Message boards : Questions and problems : ** Solved ** Retrieving donations made to each project, via code/XML files?
Message board moderation

To post messages, you must log in.

AuthorMessage
ncoded.com

Send message
Joined: 13 Dec 16
Posts: 55
United Kingdom
Message 76467 - Posted: 15 Mar 2017, 15:15:52 UTC

Hi,

It is our understanding that donations are stored within "the database" (although we are not sure which database this is), and therefore we would ask if these donations are exported to any XML file(s); and if this file(s) is publicly available so that we could parse it to make a list of the donations that we have made to the projects that we crunch for?

We do not need any help with coding, PHP, JS, XML, etc, just the name of any XML files with the required information, and the file's URL path.

The reason we ask is because some projects show donations, but others do not; and this would be a useful way to keep track of that donations that we have made.

Thanks for any help on this matter.
ID: 76467 · Report as offensive
ncoded.com

Send message
Joined: 13 Dec 16
Posts: 55
United Kingdom
Message 76483 - Posted: 16 Mar 2017, 8:11:48 UTC
Last modified: 16 Mar 2017, 8:12:56 UTC

Hi SekeRob,

Thanks for the reply, and information on where the XML files are stored; that is very useful.

I took a look at

http://asteroidsathome.net/boinc/stats/user.gz

And pulled up the record for ncoded.com but there is no listing for donations made unfortunately.

<user>
 <id>274856</id>
 <name>ncoded.com</name>
 <country>United Kingdom</country>
 <create_time>1471310252</create_time>
 <total_credit>943680.000000</total_credit>
 <expavg_credit>14537.941172</expavg_credit>
 <expavg_time>1489585535.487145</expavg_time>
 <cpid>1f409e6b69a8290c8419ab06f5bb8727</cpid>
 <url>www.ncoded.com</url>
 <teamid>35</teamid>
 <has_profile/>
</user>


None of the other XML files, db_dump.XML or tables.XML, has this data either; and I am guessing that host.gz lists User's host information, and team.gz lists team information.

So I guess this information is not publicly exported? Can anyone confirm this is the case?
ID: 76483 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15478
Netherlands
Message 76486 - Posted: 16 Mar 2017, 9:14:38 UTC - in response to Message 76483.  

https://boinc.berkeley.edu/trac/wiki/PayPalDonations has more information about how to set it up.
https://github.com/BOINC/boinc/blob/master/html/project.sample/donations.inc shows the donations privately to the user only.
ID: 76486 · Report as offensive
ncoded.com

Send message
Joined: 13 Dec 16
Posts: 55
United Kingdom
Message 76488 - Posted: 16 Mar 2017, 15:52:39 UTC
Last modified: 16 Mar 2017, 16:00:28 UTC

Hi Ageless,

Thank you for providing these Project Admin links.

We had wondered what would be involved in creating a BOINC project in terms of Code and Databases. So is good to see a whole "project" on GitHub.

--

The simple answer to the question of "Can I get access to my donations via code from a publicly exported XML file is...."

No you cannot; each project stores this information, but it is not publicly exported. Facilities are available to each project admin to privately show this information".

--

It is interesting that BOINC states "It should be clearly stated where donation money is going to be used" - and yet many projects do NOT even have a list of donations (or indication for each User to see if a donation has been made), let alone state where and how the money is going to be used.
ID: 76488 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 76504 - Posted: 17 Mar 2017, 12:17:24 UTC

The information if a user has donated to a project is already publicly available and indicated using a small icon on the user page and in the forums. Example: http://www.rechenkraft.net/yoyo//show_user.php?userid=19528
This information is just not exported into the stats export or via any other webRPC. But it can be added if there is a demand for it. Please open a github issue requesting this feature stating why you want to have it. This does not mean it will be immediately done and when it is done it will not be immediately available at all projects.

There is another way that involves screen scraping this information which is usually not very nice because it puts additional load on the project servers if not done right.
ID: 76504 · Report as offensive
ncoded.com

Send message
Joined: 13 Dec 16
Posts: 55
United Kingdom
Message 77505 - Posted: 20 Apr 2017, 16:08:27 UTC

Hi ChristianB,

Thanks for the update; I have only just seen your message.

To be honest it is not essential and I am sure the BOINC developers have 101 other things of more importance; I can just keep a list of donations.

I agree, scraping this off page's is not really a very good solution, for many reasons, one which you have given.

Thanks for the information.
ID: 77505 · Report as offensive

Message boards : Questions and problems : ** Solved ** Retrieving donations made to each project, via code/XML files?

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.