SC4D Homepage
BSC File Exchange
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length


Author Topic: Backing up threads/topics  (Read 2832 times)

0 Members and 1 Guest are viewing this topic.

Offline JoeST

  • *
  • ****
  • *
  • Posts: 2574
  • Country: gb
  • Reputation: 9
  • Gender: Male
  • fbstj
    • me
  • CL: Not your average...
Backing up threads/topics
« on: August 06, 2008, 10:58:43 AM »
I have a script that will download each page of a thread (from ST at the moment) and saves the html in a txt file

I also have a script that will make a simple HTML table of all the posts in a downloaded file.

I am offering, to anyone, for free, this service.

Just post here with a link to the first page of the thread, the number of pages in said thread and (if aplicable) permission from the author of the thread.

I have already done David's (dedgren) CJ, Three Rivers Region and the results will be appearing in the 3RR-ST board in the 3RR section of this site :)

Joe
"The only thing thats impossible is the BAT, because I cant do it"
- David (dedgren)


Sim City 4 Devotion Forums

Backing up threads/topics
« on: August 06, 2008, 10:58:43 AM »

Re: Backing up threads/topics

Offline Haljackey

  • *
  • *
  • Posts: 2077
  • Country: ca
  • Reputation: 15
  • Gender: Male
  • CL: King of the Road
Re: Backing up threads/topics
« Reply #1 on: August 06, 2008, 11:16:29 AM »
Ah, so that's what David is doing in those new ST 3RR threads!   ::)

Would you be able to do this for my CJ at Simtropolis?  (The Greater Terran Region).  Although I am now updating it here, the MD is missing dozens and dozens of updates that I just don't have time to bring over.  If you would be able to save it as a html file, that would be wonderful!

You can find the start of the thread here:
http://www.simtropolis.com/forum/messageview.cfm?catid=36&threadid=95625&enterthread=y
-Since I am the author, I grant you premission  :P



I think another good one to do would be the RHW thread at ST.  However, the author (qurlix) has not been active for some time so I don't know how you can get authorization.  The link is here:
http://www.simtropolis.com/forum/messageview.cfm?catid=124&threadid=67624&enterthread=y

Good luck! 

Best,
-Haljackey

Edit:  You're right, I did forget the number of pages.  It is currently 31 pages long.
« Last Edit: August 06, 2008, 12:08:19 PM by Haljackey »

Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #1 on: August 06, 2008, 11:16:29 AM »

Re: Backing up threads/topics

Offline JoeST

  • *
  • ****
  • *
  • Posts: 2574
  • Country: gb
  • Reputation: 9
  • Gender: Male
  • fbstj
    • me
  • CL: Not your average...
Re: Backing up threads/topics
« Reply #2 on: August 06, 2008, 12:00:10 PM »
You forgot a vital part... the number of pages :D, but as its my first i will forgive you  $%Grinno$%

I will leave the RHW thread until there is some "higher" authentication...but your CJ is coming right as I type this :)

... Done, in less than 2 mins :)

now I just need to get the parser to write to files :)

Joe

Edit: WOOO my parser works too :)
« Last Edit: August 06, 2008, 12:11:45 PM by JoeST »
"The only thing thats impossible is the BAT, because I cant do it"
- David (dedgren)


Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #2 on: August 06, 2008, 12:00:10 PM »

Re: Backing up threads/topics

Offline JoeST

  • *
  • ****
  • *
  • Posts: 2574
  • Country: gb
  • Reputation: 9
  • Gender: Male
  • fbstj
    • me
  • CL: Not your average...
Re: Backing up threads/topics
« Reply #3 on: August 06, 2008, 03:57:32 PM »
Hey Hal, thanks for being my test subject  ::) $%Grinno$%

I got you that backup you wanted, dont know how to get it you tho

and as a bonus for being my first customer (and a request by CasperVg ;)) I got your Show Us Your Interchanges thread as well :) Downloaded and  parsed in under 2 mins :o

Joe
"The only thing thats impossible is the BAT, because I cant do it"
- David (dedgren)


Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #3 on: August 06, 2008, 03:57:32 PM »

Re: Backing up threads/topics

Offline Haljackey

  • *
  • *
  • Posts: 2077
  • Country: ca
  • Reputation: 15
  • Gender: Male
  • CL: King of the Road
Re: Backing up threads/topics
« Reply #4 on: August 06, 2008, 09:44:43 PM »

and as a bonus for being my first customer (and a request by CasperVg ;)) I got your Show Us Your Interchanges thread as well :)

 :angrymore: What?  Without my permission?  :bomb: I am the author of that thread! %bur2$

Nah, thanks!  :P  Glad to see that you are having luck with it. 

You don't know how to get it to me???   $%Grinno$%  Just take your time with it.   ;)

Great work!   :thumbsup:

Best,
-Haljackey

Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #4 on: August 06, 2008, 09:44:43 PM »

Re: Backing up threads/topics

Offline JoeST

  • *
  • ****
  • *
  • Posts: 2574
  • Country: gb
  • Reputation: 9
  • Gender: Male
  • fbstj
    • me
  • CL: Not your average...
Re: Backing up threads/topics
« Reply #5 on: August 07, 2008, 03:14:08 AM »
while i am at it, do you want your Multi-RHW Guide? :D

and yeah i got yours, but only for personal use...  :P

so, like email you it?

* JoeST waits for a customer  :)

Joe
"The only thing thats impossible is the BAT, because I cant do it"
- David (dedgren)


Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #5 on: August 07, 2008, 03:14:08 AM »

Re: Backing up threads/topics

Offline Jonathan

  • *
  • *
  • *
  • *
  • *
  • Posts: 2595
  • Country: gb
  • Reputation: 25
  • Gender: Male
  • CL: Einstein, Jr. &scl()
Re: Backing up threads/topics
« Reply #6 on: August 07, 2008, 05:40:59 AM »
* A customer arrives *

You probably never heard of backing up these threads before this post ;D

You know you could backup the Discovery threads in the Modding - R&D board.

All 2 pages long except the RUL and SC4Paths which has 6.

Jonathan

Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #6 on: August 07, 2008, 05:40:59 AM »

Re: Backing up threads/topics

Offline JoeST

  • *
  • ****
  • *
  • Posts: 2574
  • Country: gb
  • Reputation: 9
  • Gender: Male
  • fbstj
    • me
  • CL: Not your average...
Re: Backing up threads/topics
« Reply #7 on: August 07, 2008, 05:44:16 AM »
Hey Jon

guess what.... I was just looking at those threads :D

I will get you then asap.

Joe
"The only thing thats impossible is the BAT, because I cant do it"
- David (dedgren)


Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #7 on: August 07, 2008, 05:44:16 AM »

Re: Backing up threads/topics

Offline deathtopumpkins

  • *
  • *
  • Posts: 998
  • Country: us
  • Reputation: 4
  • Gender: Male
Re: Backing up threads/topics
« Reply #8 on: November 06, 2008, 02:49:58 PM »
I know this thread's kinda dead...

but another customer is here if you're still open. There are several private threads on Simtropolis that I would like to have an html copy of, if you could. I can give you links, pages, etc., but you'll need to be added to the member list first, which I can't do, as I didn't start the threads, though I have permission to back them up.

Tell me if you're willing to do it and I'll give you links.

Thanks,
DTP
NAM Team Member | 3RR Collaborater | Virgin Shores

Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #8 on: November 06, 2008, 02:49:58 PM »

Re: Backing up threads/topics

Offline JoeST

  • *
  • ****
  • *
  • Posts: 2574
  • Country: gb
  • Reputation: 9
  • Gender: Male
  • fbstj
    • me
  • CL: Not your average...
Re: Backing up threads/topics
« Reply #9 on: November 07, 2008, 01:37:12 AM »
yeah I will back them up, I just have to find the script and get it up and running, might be a few days before i am ready :)

joe
"The only thing thats impossible is the BAT, because I cant do it"
- David (dedgren)


Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #9 on: November 07, 2008, 01:37:12 AM »

Re: Backing up threads/topics

Offline deathtopumpkins

  • *
  • *
  • Posts: 998
  • Country: us
  • Reputation: 4
  • Gender: Male
Re: Backing up threads/topics
« Reply #10 on: November 07, 2008, 03:19:21 PM »
OK, thanks! That's fine. I'll have you added to the member lists and PM you the links then.

EDIT: Joe, what's your username on ST? I can't seem to find you...
« Last Edit: November 07, 2008, 05:06:18 PM by deathtopumpkins »
NAM Team Member | 3RR Collaborater | Virgin Shores

Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #10 on: November 07, 2008, 03:19:21 PM »

Re: Backing up threads/topics

Offline JoeST

  • *
  • ****
  • *
  • Posts: 2574
  • Country: gb
  • Reputation: 9
  • Gender: Male
  • fbstj
    • me
  • CL: Not your average...
Re: Backing up threads/topics
« Reply #11 on: November 08, 2008, 03:08:17 AM »
im star.torturer hehe
"The only thing thats impossible is the BAT, because I cant do it"
- David (dedgren)


Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #11 on: November 08, 2008, 03:08:17 AM »

Re: Backing up threads/topics

Offline deathtopumpkins

  • *
  • *
  • Posts: 998
  • Country: us
  • Reputation: 4
  • Gender: Male
Re: Backing up threads/topics
« Reply #12 on: November 08, 2008, 08:59:50 AM »
NAM Team Member | 3RR Collaborater | Virgin Shores

Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #12 on: November 08, 2008, 08:59:50 AM »

Re: Backing up threads/topics

Offline JoeST

  • *
  • ****
  • *
  • Posts: 2574
  • Country: gb
  • Reputation: 9
  • Gender: Male
  • fbstj
    • me
  • CL: Not your average...
Re: Backing up threads/topics
« Reply #13 on: November 08, 2008, 01:46:00 PM »
oh, just realised, i wont beable to auto back up... due to my script acting as a guest...

if you want the parsing thing, then i would suggest saving them individualy as full html and i can then run them through the parsing script as a batch ;)
"The only thing thats impossible is the BAT, because I cant do it"
- David (dedgren)


Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #13 on: November 08, 2008, 01:46:00 PM »

Re: Backing up threads/topics

Offline JoeST

  • *
  • ****
  • *
  • Posts: 2574
  • Country: gb
  • Reputation: 9
  • Gender: Male
  • fbstj
    • me
  • CL: Not your average...
Re: Backing up threads/topics
« Reply #14 on: April 24, 2011, 12:42:18 PM »
Right, I am back and ready for business.

I have a bash script that downloads each page of a topic from ST, and a py script that splits them (roughly) into posts. I can skim for particular postser's contributions too. It currently backs up the whole thread as pages (to `./pages/page_#`), and then can split each page into posts (`./posts/post_#-$AUTH` in html not just the post content) and can filter out only those by a specific author.

Any particular threads anyone wants?

Joe
"The only thing thats impossible is the BAT, because I cant do it"
- David (dedgren)


Sim City 4 Devotion Forums

Re: Backing up threads/topics
« Reply #14 on: April 24, 2011, 12:42:18 PM »

 


If you experience visual glitches in our site, we strongly suggest you to use Firefox to browse the forums. Also a 1024*768 or higher resolution is highly recommended to view this site