tag:danbooru.me,2005:/forum_topics/12774BigQuery dataset (queryable dump)2020-01-07T23:01:33-05:00tag:danbooru.me,2005:ForumPost/1622062020-01-07T23:01:33-05:002020-01-07T23:01:33-05:00@gwern-bot: Seems to be working now. There's timestamps up...<p>Seems to be working now. There's timestamps up to 2020, and exporting & downloading the whole table yields JSONs which look ok.</p>gwern-bot/users/496139tag:danbooru.me,2005:ForumPost/1601242019-10-02T14:26:14-04:002019-10-02T14:26:14-04:00@throwaway10: Clicking the bigtable link gives the error...<p>Clicking the bigtable link gives the error "Unable to find table: danbooru-data:danbooru.posts"</p>throwaway10/users/712071tag:danbooru.me,2005:ForumPost/1524722018-11-20T16:05:59-05:002018-11-20T16:05:59-05:00@gwern-bot: I'm glad to hear that! I was starting to work...<p>I'm glad to hear that! I was starting to work on a Danbooru2018 dump, and the BQ mirror being broken was the biggest obstacle.</p>gwern-bot/users/496139tag:danbooru.me,2005:ForumPost/1523552018-11-15T13:04:23-05:002018-11-15T13:04:23-05:00@Allynay: Okay, got access again, BQ is up and running...<p>Okay, got access again, BQ is up and running once more!</p>Allynay/users/457948tag:danbooru.me,2005:ForumPost/1519332018-11-01T17:48:11-04:002018-11-01T17:48:11-04:00@Allynay: @norainu yep, I’m aware. I’ve lost access to...<p><a href="/users?name=norainu">@norainu</a> yep, I’m aware. I’ve lost access to the database the dump is based on and I’m working with Albert to restore access. Unfortunately the script did not fail at all gracefully when it discovered it couldn’t connect so BQ is empty until this is fixed.</p>Allynay/users/457948tag:danbooru.me,2005:ForumPost/1514522018-10-18T19:01:30-04:002018-10-18T19:01:30-04:00@norainu: @Allynay, sorry to bother you again but the...<p><a href="/users?name=Allynay">@Allynay</a>, sorry to bother you again but the BigQuery database is currently empty. The details tab shows Last Modified: today, so I guess the script still runs daily but fails immediately for some reason.</p>norainu/users/528325tag:danbooru.me,2005:ForumPost/1511832018-10-09T01:07:10-04:002018-10-09T01:07:10-04:00@hitro: Is it still active?
SELECT count(*) FROM...<p>Is it still active?</p><p>SELECT count(*) FROM [danbooru-data:danbooru.posts]</p><p>returns 0.</p>hitro/users/385258tag:danbooru.me,2005:ForumPost/1505812018-09-22T10:00:56-04:002018-09-22T10:00:56-04:00@Danaii: I'm trying to make a query to see which...<p>I'm trying to make a query to see which character tags are most used for the given copyright tag (i.e., the most popular characters). How would I make this?</p>Danaii/users/466377tag:danbooru.me,2005:ForumPost/1440912018-03-17T18:48:11-04:002018-03-17T18:48:11-04:00@gwern-bot: FWIW, a JSON dump of the BQ mirror is available...<p>FWIW, a JSON dump of the BQ mirror is available in the Danbooru2017 torrent I released last month: <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="/forum_posts/142978">/forum_posts/142978</a></p>gwern-bot/users/496139tag:danbooru.me,2005:ForumPost/1440102018-03-16T00:05:33-04:002018-03-16T00:05:33-04:00@BlooAoiBlue: I'm new to BigQuery and had the same problem as...<p>I'm new to BigQuery and had the same problem as kevo (red banner at the top of the page saying "Unable to find table: danbooru-data:danbooru.posts").</p><p>I resolved it by going to the Google APIs dashboard (<a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://console.developers.google.com/apis/dashboard">https://console.developers.google.com/apis/dashboard</a>) (you may need to create a dummy project to be able to access it) then clicking "Enable APIs and services" and enabling the BigQuery API.</p><p>I hope this helps anyone else who may have trouble :)</p>BlooAoiBlue/users/390837tag:danbooru.me,2005:ForumPost/1407392017-12-18T21:45:19-05:002017-12-18T21:45:19-05:00@Allynay: > kevo said:
>
> @Allynay is this resource...<blockquote>
<p>kevo said:</p>
<p><a href="/users?name=Allynay">@Allynay</a> is this resource still available? When I try to access the dump, I get a message</p>
<p>Thanks.</p>
</blockquote><p>Yep, it's still there. Can you share the query you're trying to run? Maybe your query is the newer (not Legacy) SQL? If you're using the new SQL you need to use "`danbooru-data.danbooru.posts`" instead.</p>Allynay/users/457948tag:danbooru.me,2005:ForumPost/1405252017-12-13T20:59:09-05:002017-12-13T20:59:09-05:00@kevo: @Allynay is this resource still available? When...<p><a href="/users?name=Allynay">@Allynay</a> is this resource still available? When I try to access the dump, I get a message </p><blockquote><p>Unable to find table: danbooru-data:danbooru.posts</p></blockquote><p>Thanks.</p>kevo/users/27447tag:danbooru.me,2005:ForumPost/1361702017-09-19T08:12:21-04:002017-09-19T08:12:21-04:00@kittey: Good find. I think it might be related to the...<p>Good find. I think it might be related to the *_(cosplay) auto-tagger. See <a rel="external nofollow noreferrer" class="dtext-link dtext-id-link dtext-github-id-link" href="https://github.com/r888888888/danbooru/issues/3307">issue #3307</a>.</p>kittey/users/320377tag:danbooru.me,2005:ForumPost/1361532017-09-18T22:11:48-04:002017-09-18T22:11:48-04:00@Allynay: Okay, figured it out. For some reason there's a...<p>Okay, figured it out. For some reason there's a post that had a tag that was in the posts table but not in the tags table. I assumed that would never happened so the script was written to shit itself if it did, since it needed the tags table for the tag ID and category.</p><p>If a post is found with a tag that was missing from the tags table, it will now have a tag with ID 0, its original name and category -42.</p><p>For reference, the bad posts and tags were: 2351218, 1858377 and 2540508 with anila_(granblue_fantasy)), idunn_(p&d) and mika respectively.</p><p>The table should be kept up to date now. Sorry it took so long to respond.</p>Allynay/users/457948tag:danbooru.me,2005:ForumPost/1361282017-09-18T14:28:25-04:002017-09-18T14:28:25-04:00@Allynay: > norainu said:
>
> @Allynay, the posts table...<blockquote>
<p>norainu said:</p>
<p><a href="/users?name=Allynay">@Allynay</a>, the posts table is still updating every 24 hours, but it seems to be getting only a random subset of the posts each time. Today it has 1,419,809 rows, about half what it should, and over the last few days it's ranged from 400,000 to 1,600,000. Do you know what's going on? (Thank you for all your work, regardless.)</p>
</blockquote><p>Thanks for letting me know, I'll have a look tonight and see what's going on. I suspect the script I'm running is crapping out early for some reason.</p>Allynay/users/457948tag:danbooru.me,2005:ForumPost/1354652017-09-07T20:56:41-04:002017-09-07T20:56:41-04:00@norainu: @Allynay, the posts table is still updating...<p><a href="/users?name=Allynay">@Allynay</a>, the posts table is still updating every 24 hours, but it seems to be getting only a random subset of the posts each time. Today it has 1,419,809 rows, about half what it should, and over the last few days it's ranged from 400,000 to 1,600,000. Do you know what's going on? (Thank you for all your work, regardless.)</p>norainu/users/528325tag:danbooru.me,2005:ForumPost/1221592016-11-04T13:56:30-04:002016-11-04T13:56:30-04:00@evazion: Crossposting forum #122158 here for reference:
...<p>Crossposting <a class="dtext-link dtext-id-link dtext-forum-post-id-link" href="/forum_posts/122158">forum #122158</a> here for reference:</p><h6>Missing cosplay tags (*_(cosplay) -cosplay)</h6><p>BigQuery: <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/savedquery/657582419813:dbddc4af3565484c9773d076744061be">https://bigquery.cloud.google.com/savedquery/657582419813:dbddc4af3565484c9773d076744061be</a><br>Spreadsheet: <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://docs.google.com/spreadsheets/d/1UXnVGTQ6DUkMh5elzWaEf7luan3MxYXLGIHVb-EzJWw/edit?usp=sharing">https://docs.google.com/spreadsheets/d/1UXnVGTQ6DUkMh5elzWaEf7luan3MxYXLGIHVb-EzJWw/edit?usp=sharing</a>. </p><pre>SELECT
CONCAT("post #", STRING(id)),
CONCAT("http://danbooru.me/posts/", STRING(id))
FROM [danbooru-data:danbooru.posts]
WHERE
id IN (SELECT id FROM [danbooru-data:danbooru.posts] WHERE REGEXP_MATCH(tags.name, r'.*_\(cosplay\)')) AND
id NOT IN (SELECT id FROM [danbooru-data:danbooru.posts] WHERE tags.name = 'cosplay') AND
TRUE
</pre>evazion/users/52664tag:danbooru.me,2005:ForumPost/1207712016-09-30T19:36:35-04:002016-09-30T19:36:35-04:00@evazion: I posted this in topic #13112 but I guess I...<p>I posted this in <a class="dtext-link dtext-id-link dtext-forum-topic-id-link" href="/forum_topics/13112">topic #13112</a> but I guess I should post it here too. This is a dump of nearly everything publicly available from the API:</p><div class="expandable">
<div class="expandable-header">
<span>BigQuery Dump</span><input type="button" value="Show" class="expandable-button">
</div>
<div class="expandable-content">
<p><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_versions.artist_commentary_versions">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_versions.artist_commentary_versions</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_versions.artist_versions">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_versions.artist_versions</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_versions.note_versions">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_versions.note_versions</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_versions.post_versions">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_versions.post_versions</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_versions.wiki_pages_versions">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_versions.wiki_pages_versions</a></p>
<p><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.artist_commentaries">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.artist_commentaries</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.artists">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.artists</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.bulk_update_requests">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.bulk_update_requests</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.comments">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.comments</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.forum_posts">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.forum_posts</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.forum_topics">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.forum_topics</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.notes">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.notes</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.pools">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.pools</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.post_appeals">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.post_appeals</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.post_flags">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.post_flags</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.posts">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.posts</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.tag_aliases">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.tag_aliases</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.tag_implications">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.tag_implications</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.tags">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.tags</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.uploads">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.uploads</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.user_feedbacks">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.user_feedbacks</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.users">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.users</a> <br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.wiki_pages">https://bigquery.cloud.google.com/table/turing-zone-143603:danbooru_latest.wiki_pages</a></p>
</div>
</div><p>This should cover everything except bans and mod actions (not available in the API due to a bug), pool versions (skipped it out of laziness), and posts (OP already has that covered). I haven't automated this though so everything's about a week or two out of date at this point.</p>evazion/users/52664tag:danbooru.me,2005:ForumPost/1206952016-09-29T15:58:06-04:002016-09-29T15:58:06-04:00@albert: For the curious a flattened post version table...<p>For the curious a flattened post version table has finished syncing now and is available for query. You can contact me for access (I don't want to make it public because it has ip addresses).</p>albert/users/1tag:danbooru.me,2005:ForumPost/1206942016-09-29T15:35:39-04:002016-09-29T15:35:39-04:00@Fred1515: Just popping in to say how awesome and...<p>Just popping in to say how awesome and informative this is, you guys.</p><p>Not to mention how useful it can be: revealing trends, approval biases, user habits, user activity graphs when considering promotions, etc. So many things.</p><p>At times like this I wish I knew more than the most basic knowledge required to appreciate a good spreadsheet..</p>Fred1515/users/97403