Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 3 4 [5] 6 7 8

Author Topic: Task Force Needed: Do your part for Forum Preservation!  (Read 11092 times)

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #60 on: August 14, 2009, 10:24:03 am »

Then I could give the script to someone with more bandwidth/space/time, and they could get the dump.
As I have said a few times in this thread, that'd be me.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #61 on: August 14, 2009, 10:42:37 am »

Got javascript loading the text from the bay12 main site.

Need to research spoiler format, and get it to run through all the pages of threads, and at least find the threads.

To do that, I must learn javascript string parsing.
Logged
Eh?
Eh!

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #62 on: August 14, 2009, 11:40:38 am »

Update:

Quote
http://www.bay12games.com/forum/index.php?topic=39690",http://www.bay12games.com/forum/index.php?topic=24492.0",http://www.bay12games.com/forum/index.php?topic=27009.0",http://www.bay12games.com/forum/index.php?topic=38441.0",http://www.bay12games.com/forum/index.php?topic=40391.0",http://www.bay12games.com/forum/index.php?topic=39823.0",http://www.bay12games.com/forum/index.php?topic=39823.0",http://www.bay12games.com/forum/index.php?topic=39240.0",http://www.bay12games.com/forum/index.php?topic=40273.0",http://www.bay12games.com/forum/index.php?topic=39464.0",http://www.bay12games.com/forum/index.php?topic=39464.0",http://www.bay12games.com/forum/index.php?topic=38232.0",http://www.bay12games.com/forum/index.php?topic=38232.0",http://www.bay12games.com/forum/index.php?topic=38516.0",http://www.bay12games.com/forum/index.php?topic=38516.0",http://www.bay12games.com/forum/index.php?topic=39039.0",http://www.bay12games.com/forum/index.php?topic=40311.0",http://www.bay12games.com/forum/index.php?topic=39646.0",http://www.bay12games.com/forum/index.php?topic=40187.0",http://www.bay12games.com/forum/index.php?topic=31296.0",http://www.bay12games.com/forum/index.php?topic=31296.0",http://www.bay12games.com/forum/index.php?topic=37529.0",http://www.bay12games.com/forum/index.php?topic=37529.0",http://www.bay12games.com/forum/index.php?topic=39377.0",http://www.bay12games.com/forum/index.php?topic=39855.0",http://www.bay12games.com/forum/index.php?topic=39844.0",http://www.bay12games.com/forum/index.php?topic=39818.0",http://www.bay12games.com/forum/index.php?topic=39808.0",http://www.bay12games.com/forum/index.php?topic=38897.0",http://www.bay12games.com/forum/index.php?topic=38897.0",http://www.bay12games.com/forum/index.php?topic=36470.0",http://www.bay12games.com/forum/index.php?topic=36470.0",http://www.bay12games.com/forum/index.php?topic=39358.0",http://www.bay12games.com/forum/index.php?topic=38508.0",http://www.bay12games.com/forum/index.php?topic=33795.0",http://www.bay12games.com/forum/index.php?topic=33795.0",http://www.bay12games.com/forum/index.php?topic=38867.0",http://www.bay12games.com/forum/index.php?topic=38739.0",http://www.bay12games.com/forum/index.php?topic=39248.0",http://www.bay12games.com/forum/index.php?topic=36687.0",http://www.bay12games.com/forum/index.php?topic=39245.0",http://www.bay12games.com/forum/index.php?topic=29710.0",http://www.bay12games.com/forum/index.php?topic=38854.0",http://www.bay12games.com/forum/index.php?topic=38520.0",http://www.bay12games.com/forum/index.php?topic=32251.0",http://www.bay12games.com/forum/index.php?topic=39036.0",http://www.bay12games.com/forum/index.php?topic=31370.0",http://www.bay12games.com/forum/index.php?topic=32327.0",http://www.bay12games.com/forum/index.php?topic=32327.0",http://www.bay12games.com/forum/index.php?topic=38833.0",http://www.bay12games.com/forum/index.php?topic=38073.0",http://www.bay12games.com/forum/index.php?topic=31638.0",http://www.bay12games.com/forum/index.php?topic=31638.0",http://www.bay12games.com/forum/index.php?topic=38565.0",http://www.bay12games.com/forum/index.php?topic=38565.0",http://www.bay12games.com/forum/index.php?topic=31552.0",http://www.bay12games.com/forum/index.php?topic=36218.0",http://www.bay12games.com/forum/index.php?topic=38638.0",http://www.bay12games.com/forum/index.php?topic=38638.0",http://www.bay12games.com/forum/index.php?topic=38513.0",http://www.bay12games.com/forum/index.php?topic=31865.0",http://www.bay12games.com/forum/index.php?topic=31865.0",http://www.bay12games.com/forum/index.php?topic=38651.0",http://www.bay12games.com/forum/index.php?topic=38732.0",http://www.bay12games.com/forum/index.php?topic=37589.0",http://www.bay12games.com/forum/index.php?topic=38570.0",http://www.bay12games.com/forum/index.php?topic=38461.0"
Logged
Eh?
Eh!

Aqizzar

  • Bay Watcher
  • There is no 'U'.
    • View Profile
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #63 on: August 14, 2009, 11:54:39 am »

Hmm...  Now ah'm no expert in da ways o'dat dere computin', but ah suspec' there be a problem.
Logged
And here is where my beef pops up like a looming awkward boner.
Please amplify your relaxed states.
Quote from: PTTG??
The ancients built these quote pyramids to forever store vast quantities of rage.

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #64 on: August 14, 2009, 12:03:13 pm »

This code, on IE6(you might need to slightly alter it for anything newer), will list every topic on every page of VN.

Next step: Making an array of them all.

Then a page parsing function, applied to just the first page(Because I don't have the bandwidth to do it all)

Spoiler (click to show/hide)


Edit:
Last version before it does any actual page parsing, this lists all pages though doesn't do anything with them.
Spoiler (click to show/hide)
« Last Edit: August 14, 2009, 12:29:04 pm by qwertyuiopas »
Logged
Eh?
Eh!

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #65 on: August 14, 2009, 02:32:44 pm »

Quite a bit of success, it is now parsing down to a post level, although it won't go on to the second page or later.
(The lines of - were hr s, but were converted by the copy/paste)

(Edit:The spoiler/code combo was messed up. Unfortunately. Will be better with some effort)


Spoiler (click to show/hide)
[/div] [/td] [/tr] [tr id="msg_706374_footer"] [td valign="bottom" class="smalltext" width="85%"] [table width="100%" border="0" style="table-layout: fixed;"][tr] [td colspan="2" class="smalltext" width="100%"] [/td] [/tr][tr] [td valign="bottom" class="smalltext" id="modified_706374"] [/td] [td align="right" valign="bottom" class="smalltext"] [a href="http://www.bay12games.com/forum/index.php?action=reporttm;topic=40391.0;msg=706374"]Report to moderator[/a]   [img src="http://www.bay12games.com/forum/Themes/darkling/images/ip.gif" alt="" border="0" /] [a href="http://www.bay12games.com/forum/index.php?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help"]70.81.242.178[/a] [/td] [/tr][/table] [hr width="100%" size="1" class="hrcolor" /]
--------------------------------------------------------------------------------

Poster: qwertyuiopas
Re: Javascript VN parser spoiler test topic.
[/a] [/div] [div class="smalltext"]« Reply #1 on: Today at 01:55:29 PM »[/div][/td] [td align="right" valign="bottom" height="20" style="font-size: smaller;"][div id="msg_706520_quick_mod"] [/div][/td] [/tr][/table] [hr width="100%" size="1" class="hrcolor" /] [div class="post" id="msg_706520"] Second post test.
[table class="bbc_table"][tr][td]Table![/td][/tr][/table] [/div] [/td] [/tr] [tr id="msg_706520_footer"] [td valign="bottom" class="smalltext" width="85%"] [table width="100%" border="0" style="table-layout: fixed;"][tr] [td colspan="2" class="smalltext" width="100%"] [/td] [/tr][tr] [td valign="bottom" class="smalltext" id="modified_706520"] [/td] [td align="right" valign="bottom" class="smalltext"] [a href="http://www.bay12games.com/forum/index.php?action=reporttm;topic=40391.1;msg=706520"]Report to moderator[/a]   [img src="http://www.bay12games.com/forum/Themes/darkling/images/ip.gif" alt="" border="0" /] [a href="http://www.bay12games.com/forum/index.php?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help"]70.81.242.178[/a] [/td] [/tr][/table] [hr width="100%" size="1" class="hrcolor" /]
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
[/code][/spoiler]
« Last Edit: August 14, 2009, 02:34:25 pm by qwertyuiopas »
Logged
Eh?
Eh!

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #66 on: August 14, 2009, 02:41:29 pm »

I'm going to bed quite soon, from the looks of it I might even have something to run once I wake up? if that's the case, make sure to leave some instruction on what I should do in order to run it and such.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #67 on: August 14, 2009, 03:11:13 pm »

And here you have it, the DE-POSTER v.01.

It still can't to multi-page topics though.


Spoiler (click to show/hide)
Logged
Eh?
Eh!

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #68 on: August 14, 2009, 05:30:10 pm »

Well, it worked for a single thread, but not the whole first page.

As it is, it can fully process it to the HTML for the contents of each post and arrange it in a simplified format.

Here is the output of this thread.

Technically, the result is a HTML page containing the HTML of the output, by swapping < and > for the &gt; and &lt; because I couldn't get page source or save as to work.
Logged
Eh?
Eh!

ToonyMan

  • Bay Watcher
  • Danger Magnet
    • View Profile
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #69 on: August 14, 2009, 05:31:06 pm »

Makes sense.
Logged

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #70 on: August 14, 2009, 05:45:18 pm »

Issue: Was using "are you sure you want to be notified of replies" dialog text to find the end.

Solution: switched to mark as read.

One more test: first 5 off first page.

If it passes, I will give the full script, and hope someone cares to sit through the whole thing. The first page alone is 2-5 minutes, maybe more, and there are 16 pages... If IE6 does not quit early...

Though a later browser might work faster or better, someone would have to upgrade the page grab 'new' line.
Logged
Eh?
Eh!

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #71 on: August 14, 2009, 05:53:35 pm »

Well,
HERE IT IS!

However, even the first ~5 topics took well over a minute, at least on IE6.

I give this to you, whoever you is, who has a browser that can support the code for the entire VN, and can wait the hour(s) for it to process.

Maybe a more modern browser won't have as much of a problem.

Spoiler (click to show/hide)
Logged
Eh?
Eh!

Heron TSG

  • Bay Watcher
  • The Seal Goddess
    • View Profile
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #72 on: August 14, 2009, 07:05:03 pm »

Send it to Armok, he offered to do it. Thanks, qwerty!
Logged

Est Sularus Oth Mithas
The Artist Formerly Known as Barbarossa TSG

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #73 on: August 14, 2009, 07:06:38 pm »

Quick question though:

Why, when I tried to port it to more modern javascript, did firefox quit on the (unmodified) line aa[1].replace(/"/g,"")?
Logged
Eh?
Eh!

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Task Force Needed: Do your part for Forum Preservation!
« Reply #74 on: August 14, 2009, 10:21:01 pm »

Ok, woke up, read new posts in this topic.
I'm a bit confused. If I run this script, will it take every post, from every page of every topic, from every  page of topics, so that once it has finished there is no information in the entire VN that it has not backed up completly, and save this information to my harddrive? or is that script not finished yet?
Secondly, how exactly do I run it? I'm not to familar with javascript (my knowlege of it euals abaut "it's a programing language that is often embeaded in weabpages, and has very litle to do with actual Java"), and I'm curently using firefox. I Do have exlprorer instaled so that shuldnt be a problem thou... still, I'm not sure how to run this javascript thing, and also do I have to do something like navigate to a spesific page before starting it or give it some input settings or anything like that?
Also, what is the bottleneack of its speed? Is it the CPU, the bandwidth, the bay12 response time, or what. ALso, how much memory does it take, I could store around 50 gigabytes or something equaly exesive if necesery, but if it's more than 2 gigabytes I shuld probably shufle around a few files first. Thou from the looks of it it's just text so it probably ends up something rediculusly tiny comared to any of those numbers, but it dosnt hert asking.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...
Pages: 1 ... 3 4 [5] 6 7 8