Jump to content

Syko's JKfiles Mirror


Recommended Posts

I figured that would be the tricky part. You could bypass that and go for the direct download link on the page though by waiting for the correct amount of ms.

This isn't how it works :D

Know all those popup windows on sites like Facebook? They're not real buttons either, they're just hidden and when you click them they show up.

It's all a lie, man, IT'S ALL A LIE!

My point is, the link is probably in the page source.

Link to comment

This isn't how it works :D

Know all those popup windows on sites like Facebook? They're not real buttons either, they're just hidden and when you click them they show up.

It's all a lie, man, IT'S ALL A LIE!

My point is, the link is probably in the page source.

It is. As it turns out, you can just avoid the countdown, that's what I'm getting at here. It says "If it does not, click here". The "here" in the link can be extracted with no real issue.

Link to comment

It is. As it turns out, you can just avoid the countdown, that's what I'm getting at here. It says "If it does not, click here". The "here" in the link can be extracted with no real issue.

Exactly my point - this isn't how it works. Bots have no sense of time, they can't just 'wait'.

The 'click here' button though works fine, ya.

Link to comment

I added a mirror to the site download on the first post. I'm going to add one or two more eventually. 

 

EDIT: Everything that was there before is now a mirror now. The main download link is going to be the whole thing in one file on Dropbox.

Link to comment

Erm...any progress on that bot? It's been 5 days now. 

 

I'm getting a 3 TB external hard drive at the end of the month. A complete JK3Files mirror will be the perfect thing to put on it.

Been kinda busy with school and all. I guess I can start now.

Also @poke me next time.

Link to comment

So after rebrowsing the JK3files mirror I had created, I found that I actually only had about 80% of all the pages. I took the liberty to redownload the entire website again and this time 99.9% of the pages are saved. I'm going to reupload everything on Box again as a zip file. I'm also going to see about uploading the HTML files themselves, so you can browse the site mirror in your browser directly.

 

The new download when extracted will total 4.9 GB (as opposed to 3.53 or whatever the previous one was)

Link to comment

So uh, I have some progress going. Right now I can get the file PAGE links from all categories' first page (but not sub-categories).

Should I continue with this? @@Syko @@eezstreet ?

EDIT: Also another thing - every time you run this, it'll download all the files all over again. I suppose I can try and figure out some sort of check to see if the file already exists, but yea, you tell me. Is this gonna be a 1-runner or what?

Link to comment

@@spior Is the program/bot in a usable state yet? If so, I'd like to test it a bit. Also, are the mods organized by folder or are they all thrown into one folder? It would be cool if they could be added to work with the site mirror so if you click on

 

downloadac.gif

 

It actually 'downloads' the file directly right there (effectively copying the file from the user's local mirror folder to their Downloads folder). It might be better that way because the user could read the review and screenshots right there instead of having to find the corresponding file in some folder they downloaded from the bot. I'm not sure how that would be possible though. Your bot would have to scan through the mirror's entire folder and edit the HTML files, editing the links and also would have to move the previously downloaded mods into their corresponding folders in the mirror folder.

Link to comment

I can just make the downloads folder user-settable.

No, not done yet. I have school and I don't feel like programming after school much, sorry.

Good news is today was the last day before vacation so I have whole week to work on it.

For now it gets all the links from all the categories and sub-categories so it shouldn't take /too/ long to finish it.

Link to comment

I'd just like to point out 2 things

1) If things don't decide to break, this will probably be done very soon

2) the guy who made gamefront should kill himself. 4 (I REPEAT - FOUR) REDIRECTS JUST TO DOWNLOAD 1 FILE? FUCK YOU

Link to comment

Glad to see some progress! In several years the JK community will thank all of us for doing this. 

 

Also, If you don't mind, after the bot is finished I'd like to have a look at the source code (unless you want to release the source anyway.) I think it would be a good learning experience for me in programming.

Link to comment

Glad to see some progress! In several years the JK community will thank all of us for doing this. 

 

Also, If you don't mind, after the bot is finished I'd like to have a look at the source code (unless you want to release the source anyway.) I think it would be a good learning experience for me in programming.

Oh lol.

Yeah I do plan on making it open source. I need to practice my git and this seems like a good opportunity.

Have fun understanding anything though.

Link to comment

I get the feeling someone doesn't comment their code lol

Oh I do.

But I just like to jam as much as code as I can in one place.

 

 

 

while(t = strstr(t++, "<a class=\"size11\" href=\"/file/"))
{
char temp[MAX_FILE_LEN] = { 0 };
t+=strlen("<a class=\"size11\" href=\"");
strncpy(temp, t, strstr(t, "\"")-t);
if(*num_file == 0 || strncmp(temp, files[(*num_file)-1], strlen(files[(*num_file)-1])) != 0)
strcpy(files[(*num_file)++], temp);
tt = t;
}

 

 

Link to comment

1) If things don't decide to break, this will probably be done very soon

 

things broke. I keep getting redirected in circles. Might take a while to understand why this is happening since I don't know any of the GF staff.

 

Okay I think it's done. Gonna do some small tests and link it to you if all goes well @@Syko

Actually hold on. I wanna make this look pretty :D

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...