[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: simcat trv.png (296 KB, 1891x901)
296 KB PNG
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!
>>
>>546931330
Only swiss anon I know is pratty.
>>
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.
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.

You can find all of them on the internet archive.
>>
>>546931330
The swiss openly gay.
>>
>>546931386
I will show you the difference between that dirty jeet and a proper SWISS ANON.
>>
File: shills.jpg (63 KB, 590x787)
63 KB JPG
As always, this thread is routinely visited by many glowies, shills and bots.
Look at pic related to better understand this phenomenon.
>>
File: fren.png (636 KB, 637x539)
636 KB PNG
I also received a couple monero donations, it worked!
Thank you to whoever donated, I should now be able to release the 0.04 version before christmas.
>>
File: summary.png (18 KB, 567x642)
18 KB PNG
ALSO NEW:

I added a summary to the paste so it's easier to find where which part is etc.
>>
File: PBTID counter.png (68 KB, 1349x563)
68 KB PNG
Also a new feature (already for the next 0.04 version)

I added a PBTID counter visible by default!
>>
>>546931330
gay
automatic board archives spit in the face of anonposting. either it was worth archiving yourself or it wasn't.
>>
File: glow 404.png (50 KB, 255x255)
50 KB PNG
>>546932467
OY VEY SHUT IT DOWN!
>>
Why has goyimx been returning a host error for over a week now too?
>>
>>546932550
>Why has goyimx been returning a host error for over a week now too?
I have no idea. The entire internet will probably either be fully AI-censored or just go down soon.
GO OFFLINE, USE MY CODE!
>>
Hey what the hell is going on?
DDOS attack on /pol/ or something?
>>
>>546932550
ok let's try again
n 1 t t 3 r (dot) cf still works
>>
File: glow ack.png (326 KB, 773x721)
326 KB PNG
GLOWNIGGERS ARE SLEEPING
ONLY BOTS ARE ACTIVE
TIME FOR SOME SHAMELESS SELF-BUMPING
>>
File: bump.png (247 KB, 612x459)
247 KB PNG
KEEP BUMPING NIGHTTIME FRENS
>>
So are jews going to keep storage expensive forever or will prices come down?
>>
>>546934493
There are certainly multiple jewish conspiracies currently active, aimed at disempowering white people worldwise.
>So are jews going to keep storage expensive forever or will prices come down?
I have no idea, but I can tell that you can bypass all of this by downloading the 4plebs archives and USING MY CODE.
>>
>>546931330
thank you i have come to this thread again after contemplating your proposal for a couple of weeks and i would like to extend my gratitude to you for your effort and idea, may you live long and in peace
>>
>>546933185
>>546934281
Kek
>>
File: dictcode 004.png (13 KB, 720x326)
13 KB PNG
>>546935453
Thanks to you fren, if you can try the code and post some screenshots of the output and feedback.
Also the current 0.03 is a crippleware plaything, next month I will give you the 0.04 version based on dictionaries and that one is already significantly more powerful.
I just need to clean it up a bit and add some try/except blocks to prevent runtime errors etc.
>>
Does the archive capture posts that were purged from 4chan and 4plebs?
Like the one this one was replying to is sus:
>>>/tv/224499254
>>>/tv/224499233
It seems like they took down the entire site just to delete it.
>>
File: tv.png (16 KB, 1133x476)
16 KB PNG
>>546935893
It seems that post was purged by 4plebs too.
I'm using their archives so if they decide to manually delete something of course it won't be visible offline either.
You know they remove literal cp when it's posted right?
>>
Now that I think about it I still didn't add a way to add a bar to links to removed posts.
I'm adding that to the "to do" list.



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