[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: minimal html 0.03.png (63 KB, 1893x791)
63 KB PNG
Repeat thread for who didn't see it yet and to cut through bot noise.

Now you can output basic HTML threads too!

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.

The colors aren't final, still experimenting with that.

WHAT'S NEW:

v. 0.03

Added PART 5a (rendering functions) with:
First elaborate HTML output functions like output() producing HTML files that look like what you would see in a real minimalistic imageboard.
New _make_link() function to elaborate HTML reply hyperlinks.
New getreplylinks(input_OP, l) function to get all the small "Quoted by" reply links like in the real thing.

Added PART 5b (main function) with:
New rt_html(input_OP, out_to_html, multi) function to get and render a single thread as HTML.

Extra / bug fix:

Various code optimization here and there, including rewriting parts of read_post() and read_thread().
Added some try/except blocks to several functions to prevent exceptions and unwanted stops of the runtime.
Removed a bug in the csv splitter since we almost never need a csv header here and it was causing a botched row to be copied in all small parts. I left the code commented in case you want to reactivate it for some reason.

PASTEBIN LINK:

pastebin.com/aLrgNNZm
>>
File: thread HTML new.png (72 KB, 1899x899)
72 KB PNG
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 current version (see pic).
>>
File: Venn v3.png (258 KB, 2000x2000)
258 KB PNG
This is a Venn diagram showing the current situation for publicly accessible dumps as far as I know.

You can find all of them on the internet archive.
>>
File: summary.png (18 KB, 567x642)
18 KB PNG
NEW

I added a summary to the paste so it's easier to find where which part is etc.
>>
File: glow cia.jpg (61 KB, 500x500)
61 KB JPG
GLOWIES ARE SLEEPING

COUNTERPSYOP TIME
>>
ty claude
>>
Good thread
>>
>>546731373
I coded most of it by myself, only asking the Brave LLM or Venice for suggestions and debugging.
Just look at how unoptimized were versions 0.01 and 0.02.

pastebin.com/7HBW2naU
pastebin.com/Y1SY0Z6z
>>
Also what I'm posting now is still old, unoptimized but functional code.
I have 3 newer versions with SQLite (thanks for the idea French Anon) I'm already using myself.

COMING SOON, meanwhile try playing with the 0.03 code and give me feedback. It's slow but it should work.
>>
>>546731418
Thanks to you man, appreciated.
If you can, try running the code and post some screenshots so I see it works for other people too!

Also if you're scared of malware have an AI scan the source code, there's nothing bad in it.
>>
File: dictcode 004.png (13 KB, 720x326)
13 KB PNG
The next version (0.04) is already a lot faster since I started using indexed dictionaries instead of simple lists.
>>
File: bump.png (247 KB, 612x459)
247 KB PNG
Please leave a BUMP so other people can see the code and try some political research DIY.

Thank you for your attention to this matter.
Swiss Anon - President of Based Department Switzerland.
>>
File: sage palette.png (102 KB, 1798x711)
102 KB PNG
Opinions on this "sage" like color combo?
>>
File: lime palette.png (101 KB, 1843x720)
101 KB PNG
Compare with this color palette.
Both look quite good to me.
>>
BUMP
>>
>>546731245
you post with the frantic urgency of a man who senses his prized creation would be easily superceded by the average retard with access to an LLM and an afternoon to spare.
>>
>>546731245
>There is a real possibility that the internet could go down soon due to war or some AI fuckery
in 2 weeks?
>>
>>546735847
Nah I genuinely care about this project and I think it can be useful to anons rightfully scandalized by the current conditions of 4chinz and the internet in general.
I don't think it's that easy to vibecode this in an afternoon.
>>
>>546735847
Also are we really sure there will still be an internet at all 6 months from now?
Several indicators point in the opposite direction.
Maybe the future is really some hashchan or peer hosted Bitsocial site like 5chan or similar.
>>
File: 1770331978303253.jpg (47 KB, 782x960)
47 KB JPG
>>546731245
I still don't understand "load everything in the RAM". Can I search a 20GB /pol/ data dump with only 16GB of RAM?
>>
>>546737473
>Can I search a 20GB /pol/ data dump with only 16GB of RAM?
In the 0.03 version? No if you don't split the csv.
It's easy tho, you can split it in 4 parts and search one after the other easily.
From 0.04 with dictionaries and later with SQL code it's possible to query a 100 GB file without overloading the RAM.
>>
>>546737131
Schizophrenia at it's finest
>>
>>546737473
>load everything in the RAM
Yeah that is an obsolete idea from october when I didn't know that searching a huge list is a lot less efficient than searching a huge dictionary.
It will become better from next version, I plan on cleaning it up and release it to pastebin before christmas.
>>
File: glow.png (48 KB, 745x800)
48 KB PNG
>>546737596
OY VEY
>>
>>546737596
Jews aren't going to let antisemitism continue to spread. We're currently in a censorship lull but as anyone older than 30 will tell you that is only temporary and even during this lull we are seeing internet ID, bans, and the disappearance of entire sites like mless.
>>
File: IMG_4971.png (230 KB, 500x324)
230 KB PNG
another day of greatness!
>>
>>546737636
Carry on Swiss Anon. Don't listen to the jews trying to dissuade you as if creating a local archive is in any way a bad thing.
>>
File: dawn.png (372 KB, 740x433)
372 KB PNG
GOOD MORNING AMERICA

WORKERS AND NEETS ALIKE

P.S. I'm NOT Pratty or any other jeet soiling my flag.
>>
>>546737723
>>546737725
>>546737794
Thanks bros, ooh don't worry when I get obsessed on a project I never stop.
Indeed the kikes are already creating countermeasures to enslave goys even more.
Decentralization is how Europa wins.
>>
Keep going Swiss anon. Bump for respect

My only real question is 'why'? Why are the archives useful for offline reference? As a newfag who started using 4chan circa 2008, I only ever used the archives for things like mediafire download link from /mu/ or pdfs from /tg/. What purpose does it serve to have offline versions of long ended /pol/ conversations between glowies, schizos, neets, and shills?
>>
>>546738084
>Why are the archives useful for offline reference?
1) You can power search through it even if 4plebs goes down or limits your search options (as it's doing right now). Bypass all the bot / shill / glowie noise.
2) If the internet goes down, you can browse 2013-2026 archives from a simple HDD and a couple solar panels or a generator.
3) There are many good threads not contaminated by glowie activity but limited by their temporal visibility on the main site. With the archives you can see everything any time you want.
>>
File: IMG_3930.jpg (126 KB, 825x1024)
126 KB JPG
>>546731245
Dear Sam Altman,

You can has no internetz, and all your base are belong to us.

Love, Anons.
>>
File: PBTID counter.png (68 KB, 1349x563)
68 KB PNG
I added a new PBTID counter visible by default to every post. No need to hover with the mouse.
Now it's easy to see who's contributing more, and can be used to rank replies too.
>>
>>546738236
Thanks Swissanon, good summary.
You're doing good work for the greater good of anons everywhere. Keep going
>>
>>546738523
this
God bless
>>
>>546738523
Thanks bro
Opinion on these color palettes?
>>546733881
>>546733905
>>
File: 1790338527726690.png (33 KB, 1182x325)
33 KB PNG
>>546738801
Way too bright.
>>
>>546738801
Hard to say on the background pallet. You want something that gives a little contrast to the green of any >quotes
Looks like lime has a better contrast
>>
>>546738952
Yeah that's right I will surely add a couple dark themes.
>>
>>546731245
If the world went dark the last thing I would want is more 4chan. I also don't want your keylogger. Fuck you OP. You can trick some retards but not all of us.
>>
>>546739027
It's simple source code you can have any AIs scan it for malicious content etc.
If you're unable to even do that then it's not for you.
>>
>>546738970
Yeah there's a surprisingly small set of color combos that work with background + card + black text + green (or other highlighted color) text.
I will keep testing, LLMs aren't too helpful with color combos.
>>
>>546738280
We're crashing the ZOG enslavement structures with no survivors.
>>
>>546738084
The renaissance of antisemitism started here. /pol/ was outright naming the jew back when everyone else still thought the holocaust was a real extermination.
>>
>>546731245
Add a primitive AI model so we can pretend to write with other anons
>>
>>546731245
cool
>>
>>546739634
that would be cool
>>
>>546739634
>>546739678
I was thinking about a simulated catalog by time, but no I would like to avoid bots and AIs lol.
You can still get Kilcher's GPT-4chan and code a version with it to simulate users in a certain epoch.
>>
>>546739730
>simulated catalog by time
That's a really good idea. Pick a date and see the catalog as it would have been at that time.
>>
>>546739634
>>546739678
Any LLM would ruin the application.
I’d say the remedy is to add a catalog simulation feature, but perhaps this feature ought to include a 1x,2x,4x,8x speed/time setting?
>>
>>546739551
I was there anon, i know.
>>
File: TOKAIE TEIO SANNNNNNNNNNN.png (2.29 MB, 1551x1078)
2.29 MB PNG
>>546731245
fuck the internet
>>
File: lines.png (9 KB, 747x132)
9 KB PNG
Also let's not forget that it's possible to retrieve ANY thread from the .csv using less than 250 lines of Python code total (350 with comment lines and other non-code stuff), still below the 500 lines mark I wanted.
I think nobody has ever written such a short code to render 4chan threads from a csv and search in it.
>>
>>546740246
I will deadname the ARPAnet until the end of my days



[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.