[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/pol/ - Politically Incorrect

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
Flag
File
  • Please read the Rules and FAQ before posting.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 0.04 HTML thread.png (69 KB, 1817x909)
69 KB PNG
The NEW dictionary-based version 0.04 is here!

First part 4th december 2026 (today's release)!
Second part 19th december 2026 (the same 0.04 paste will be updated)!

Now you can render already quite nice looking HTML threads too for free!

Swiss Anon strikes again!
There is a real possibility that the internet could go down soon due to war or some AI fuckery... are you ready to browse the archives offline?

>there's already more complicated code for it on github or FoolFuuka so you can run it on a server
Fair enough, but I want to do it myself from scratch, as an exercise, with the functionalities that I desire and as simple as possible, under ~500 lines of code. If I can do it, you will be able to do it too if there's an internet blackout.

You can also now choose between 3 color themes (not final, still experimenting with that)!

WHAT'S NEW:

v. 0.04

Completely rewritten, optimized and re-tested the entire code, now it works with Python dictionaries instead of simple lists, greatly improving speed and RAM efficiency and allowing work with bigger .csv files.
A list of the rewritten and updated parts:

PART 0 - INITIAL SETUP AND IMPORTS
PART 1 - NEW .CSV LOADER now working with Python dictionaries
PART 2 - NEW SINGLE POST READER read_post() now working with Python dictionaries
PART 3 - NEW HTML THREAD RENDERER rt_html_fast() now working with Python dictionaries (main function and rendering functions together)
PART 4a - NEW KEYWORD SEARCH FUNCTION (released in this paste the 19th december)
PART 4b - NEW KEYWORD SEARCH FUNCTION HTML RENDERER (released in this paste the 19th december)

2 new UTILITIES.

PASTEBIN LINK - (0.04):

pastebin.com/ZHm5gXq9
>>
File: dumps.png (113 KB, 1177x709)
113 KB PNG
LIST OF 4PLEBS DUMPS:

https://archive.4plebs.org/_/articles/credits/#4plebsdumps

KEEP THE THREAD BUMPED - ANOTHER THREAD WILL BE POSTED TOMORROW LIKE EVERY SATURDAY
>>
Swiss anon delivers again.
I would like some of you to test the code and post screenshots of your outputs ITT so I can check if all works properly.
Any feedback is appreciated.
Pic related is what the currently most advanced version looks like. Not that bad innit?

As you can see what (You) can output now starts to look very close to my currently most advanced version.
>>
New features currently being tested and coming soon:

SIMULATED CATALOG (text only for now)
See what threads were active in a chosen time window, similar to 4plebs' time machine mode.

Works on all 4plebs boards and even more!
>>
File: Venn v4.png (292 KB, 2284x2000)
292 KB PNG
This is a Venn diagram showing the current situation for publicly accessible dumps as far as I know.
There's some more stuff I discovered in the past days that still needs to be added to the diagram, I will do it later if relevant.

You can find all of these dump files on the internet archive.
>>
File: summary.png (30 KB, 1235x771)
30 KB PNG
ALSO NEW:

I added a summary to the paste so it's easier to find where which part is etc.
>>
this place is the last I'd want to think about when the internet goes down
>>
>>547235884
is this some sort of autistic fixation
>>
>>547235884
I want ALL of the archive starting from today. The software you made isn't sufficient enough.
>no images archived
>no vids, webm
Yes I got enough of storage. Yes I want to save everything. I don't need old archives. Yes I want to browse offline.
>>
>>547236120
KYS KIKE
>>
>>547236218
Patience fren... one step at a time.
You can already save everything, just not see everything in html for now.
>>
File: IMG-20261204-WA0000.jpg (141 KB, 1600x808)
141 KB JPG
Now you can render HTML threads in 3 colored themes!
1) LIME
>>
File: IMG-20261204-WA0001.jpg (135 KB, 1600x791)
135 KB JPG
2) SAGE
>>
File: IMG-20261204-WA0002.jpg (126 KB, 1600x831)
126 KB JPG
3) NIGHT (to be further improved)
>>
>>547235884
bumpin
>>
>>547235884
The entire data dump needs to be loaded in RAM? How large is the .csv file you are using in this example?
>>
>>547236218
I'm curious as to why you'd want to start archiving from today but nothing older. You realize most posts today are bots, right?
>>
Thread theme
https://www.youtube.com/watch?v=6PuSd1liCuE
>>
>>547237851
It's a lot better in the 0.04 version already, you can load 10 GB .csv with 16 GB RAM, but I also gave you a file splitter to make parts of smaller size.
The next SQL version completely bypasses the problem and doesn't almost use the RAM.
>>
Ok I changed the colors of the "night" theme in the paste, I will need to make links less blue later too.
Now it should look better.
>>
bump
>>
>>547238076
What about this one?
voca.ro/1ctonQVsvbfS
>>
>>547238555
... and CKECKED
Hey there Spain bro!
>>
I also confirm that the current code (weirdly enough) also works with warosu mysql dumps as is (you just need to swap some row index numbers).
>>
File: IMG-20261204-WA0003.jpg (202 KB, 1600x748)
202 KB JPG
Ok I updated the night theme once again in the paste. Now it looks a lot better.
I'll keep it like that for now.
>>
>>547239117
Hola
>>
>>547238616
Saved.

>>547240492
Nice work that is much better.
>>
b u m p
>>
>>547235884
Very cool. In the near future after the apocalypse, i can see myself reading through the vast 4chan archive in search of rare erudite knowledge.
>>
.
>>
I'm still editing the code for link colors, so if you see small changes it's normal.
>>
>>547242076
The enemy will never win.
Long live all European nations!
>>
>>547235884

Bump
>>
>>547235995
Kino Archive zyxwvut



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.