Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: Bay 12 Thread Downloader and Filter: New version: 1/4/2014  (Read 5867 times)

Parisbre56

  • Bay Watcher
  • I can haz skullz?
    • View Profile
    • parisbre56 Discord
Re: Bay 12 Thread Downloader and Filter: New version: 23/10/2013
« Reply #15 on: October 23, 2013, 11:42:46 am »

New version is up. It downloads images (both those posted by users and the images the forum theme uses), it can login, it's about 5 times faster than the old one and it has a better GUI.

Please tell me if it doesn't work for you or if you have any questions/suggestions.

EDIT: Turns out it doesn't work in Windows again. Probably screwed something up in the file names. I'll fix it tomorrow.
« Last Edit: October 28, 2013, 07:32:56 pm by Parisbre56 »
Logged

Parisbre56

  • Bay Watcher
  • I can haz skullz?
    • View Profile
    • parisbre56 Discord
Re: Bay 12 Thread Downloader and Filter: New version: 23/10/2013
« Reply #16 on: October 28, 2013, 07:36:56 pm »

Found the source of my Windows problems. Turns out java, for some strange reason, has decided that the 32-bit version of the JVM must have a standard heap size of 250MB. And guess which version of the JVM gets automatically installed in any Windows machine, both 32 and 64 bit? Yep, you guessed it, the 32-bit one.

This means that as soon as the program starts using more than 250 MB of memory, it crashes, unless you've downloaded and installed the 64-bit version for some reason. This means that you're fine as long as the pages of the thread are less than 1069 (in 15 posts per page mode).

Java itself gives you no way to alter the heap size from inside the program itself. I could tell you "You can use the command line to increase your heap size", but that reduces the ease of use, which was the whole reason for making a GUI. I can create different executable for each OS, but that defeats the purpose of using Java to make this cross platform. So it seems like the only thing I can do now is rewrite the program to download the data into temp files.

Yay, problems caused by arbitrary limits. At least I am learning stuff.

Parisbre56

  • Bay Watcher
  • I can haz skullz?
    • View Profile
    • parisbre56 Discord
Re: Bay 12 Thread Downloader and Filter: New version: 1/11/2013
« Reply #17 on: October 31, 2013, 08:29:15 pm »

Added the use of temp files to solve the memory problems. It should be working fine now.

Xantalos

  • Bay Watcher
  • Your Friendly Salvation
    • View Profile
Re: Bay 12 Thread Downloader and Filter: New version: 1/11/2013
« Reply #18 on: October 31, 2013, 08:43:57 pm »

Eeeexcellent. Time to read through ER.
Logged
Sig! Onol
Quote from: BFEL
XANTALOS, THE KARATEBOMINATION
Quote from: Toaster
((The Xantalos Die: [1, 1, 1, 6, 6, 6]))

Parisbre56

  • Bay Watcher
  • I can haz skullz?
    • View Profile
    • parisbre56 Discord
Re: Bay 12 Thread Downloader and Filter: New version: 2/11/2013
« Reply #19 on: November 01, 2013, 03:47:56 pm »

New version is up. It can save output as a "lightweight" .txt file, perfect for devices with low memory or e-book readers.
Either click "Browse" and select the "Plain Text" option or change the output file's extension from ".html" to ".txt" before pressing start.

I had some problems with quotes and spoilers, but I think I solved them now. Tell me if you notice anything wrong.
And tell me if you have any suggestions about the plain text output (more/less info, options you'd like to have, etc).

I've noticed that some output files are just too large, so I've added the ability to separate a file into multiple files to my long term goals.
« Last Edit: November 01, 2013, 04:09:46 pm by Parisbre56 »
Logged

Person

  • Bay Watcher
    • View Profile
Re: Bay 12 Thread Downloader and Filter: New version: 2/11/2013
« Reply #20 on: December 17, 2013, 09:15:06 pm »

Are you still working on this?
Logged
Please don't let textbooks invade Bay12.
The Conquistadors only have the faintest idea of what the modern world is like when they are greeted by two hostile WWI Veterans riding on a giant potato; Welcome to 2016.

Parisbre56

  • Bay Watcher
  • I can haz skullz?
    • View Profile
    • parisbre56 Discord
Re: Bay 12 Thread Downloader and Filter: New version: 2/11/2013
« Reply #21 on: December 18, 2013, 07:35:20 am »

Are you still working on this?
Sometimes, although not as much as I'd like to. Got some work done with altering the page a bit (removing sigs and avatars and stuff) but I haven't finished it yet, that's why I haven't released an update.

Any specific feature you really want to see? If it's not something too complicated I could get it done in a week or two.

Person

  • Bay Watcher
    • View Profile
Re: Bay 12 Thread Downloader and Filter: New version: 2/11/2013
« Reply #22 on: December 18, 2013, 05:05:51 pm »

I don't have anything in mind other than what you're already working on, but there might be a few people that would prefer not having the images, most likely for bandwidth reasons. Having a toggle for that in new versions might be nice.

Edit: Thought of something. When downloading larger threads, having to scroll down forever is somewhat of a problem, especially when it comes to remembering where you left off. Having a way to split the threads back into pages would be great if possible, ideally in a customizable way.
« Last Edit: December 19, 2013, 09:45:03 pm by Person »
Logged
Please don't let textbooks invade Bay12.
The Conquistadors only have the faintest idea of what the modern world is like when they are greeted by two hostile WWI Veterans riding on a giant potato; Welcome to 2016.

Fayrik

  • Bay Watcher
    • View Profile
Re: Bay 12 Thread Downloader and Filter: New version: 2/11/2013
« Reply #23 on: December 24, 2013, 10:00:58 pm »

I remember reading this thread and pondering how useful this program could possibly be one day...

Here's the source code if anyone wants to mess with it. (10 MB, Eclipse project)
And now, I might just need this source code to make a branch program to spider search for rule violations on a forum I moderate.
If I succeed, I'll post up the branch here.
Logged
So THIS is how migrations start.
"Hey, dude, there's this crazy bastard digging in the ground for stuff. Let's go watch."

Parisbre56

  • Bay Watcher
  • I can haz skullz?
    • View Profile
    • parisbre56 Discord
Re: Bay 12 Thread Downloader and Filter: New version: 2/11/2013
« Reply #24 on: December 25, 2013, 01:06:32 pm »

I don't have anything in mind other than what you're already working on, but there might be a few people that would prefer not having the images, most likely for bandwidth reasons. Having a toggle for that in new versions might be nice.

Edit: Thought of something. When downloading larger threads, having to scroll down forever is somewhat of a problem, especially when it comes to remembering where you left off. Having a way to split the threads back into pages would be great if possible, ideally in a customizable way.
Yeah, the first one is easy, just changing one line of code into another. I'll add a button to do that in the next version.
The second one, I've been thinking about this myself. It's next on my list. I'll get working on it after the holidays.

I remember reading this thread and pondering how useful this program could possibly be one day...

Here's the source code if anyone wants to mess with it. (10 MB, Eclipse project)
And now, I might just need this source code to make a branch program to spider search for rule violations on a forum I moderate.
If I succeed, I'll post up the branch here.
Just want to warn you that at best, what I have here could be used as an inspiration, if that. I don't think it will be much help to you at its current state. I've written this with the philosophy of "get it working and get it out there as soon as possible" not "make the code easy to understand and extend".

If you have access to the forum's database, I suggest using that to do your search. If it uses something like SQL, it should be much much easier.
I can also give you a list of all of the tools and packages I used, if you're interested. If I had those tools from the start, I might had done a better job. I'll probably rewrite it completely if I find some time.

Parisbre56

  • Bay Watcher
  • I can haz skullz?
    • View Profile
    • parisbre56 Discord
Re: Bay 12 Thread Downloader and Filter: New version: 28/3/2014
« Reply #25 on: March 28, 2014, 05:56:31 pm »

New version can split the output into multiple files.

Simply click the "Stuff" menu and then the "Other Options" menu item. The posts per page is the option you want.
Option only works for html output. Plain text output is still one huge file. I should probably add an option to enable it or disable it.

You can also mess with the other options there if you want. Although the checkboxes there don't do anything yet.


Stopped the program from failing when downloading image links with no file type (like this one: https://i.chzbgr.com/maxW500/7047413504/h45184DA5/)
Fixed a divided by zero error that happened in some rare cases.



« Last Edit: March 28, 2014, 06:01:29 pm by Parisbre56 »
Logged

Parisbre56

  • Bay Watcher
  • I can haz skullz?
    • View Profile
    • parisbre56 Discord
Re: Bay 12 Thread Downloader and Filter: New version: 1/4/2014
« Reply #26 on: March 31, 2014, 07:31:37 pm »

New version can combine multiple files into one and order the posts based on time.
Unfortunately, it can only process times in the %a %d-%m-%Y, %H:%M:%S format.

So make sure to log in and change your date format to that if you want to use it until I get around to fixing it.
The time format setting is in Profile -> Look and Layout.

Here's the entire ER subforum, if you wanna see what the output looks like.
It's about 100 MBs and exactly 1000 pages long in 50 posts per page format.
« Last Edit: March 31, 2014, 07:36:22 pm by Parisbre56 »
Logged
Pages: 1 [2]