[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: Thread HTML browser.png (141 KB, 1885x917)
141 KB PNG
Swiss anon strikes again!
There is the concrete possibility that the internet will 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 so you can run it on a server
Alright but I want to do it myself from scratch, as an exercise, with the functionalities that I desire and as simple as possible, less than 500 lines of code.

My Python/HTML browser is starting to look good, I finally managed to get the correct reverse reply links to work too.
These little niggers are hard to implement if you never tried a similar task beforehand.

The colors are not definitive, still experimenting with that.

I want (YOU) to try building a similar browser for yourself, you can find some code screenshots here and in previous thread as a help.

NEW:
I published a first version of the code with the first basic functions on pastebin, here's the link so you can play with it.

LINK:

pastebin.com/7HBW2naU
>>
File: bataclan.png (47 KB, 770x442)
47 KB PNG
I've been also adding some new functions.

Have a look at this new part, it ranks posts according to the number of replies, and also labels them to distinguish OP posts from standard replies.
>>
>>545783577
>>545783594
>Hey do you believe my “in two weeks the world will end” shitpost I did to steal your data on my absolutely real board?
Rope and seethe, in this order.
>>
File: pastebin.png (51 KB, 1681x899)
51 KB PNG
The pastebin color coding fucked it up a bit in the non-python parts, you can still look at the raw text.
>>
>>545783632
Fuck off retard/bot.
>>
>>545783577
YOU WON'T DO SHIT
>>
File: glow 404.png (50 KB, 255x255)
50 KB PNG
>>545783745
FUCK GLOWIES

THIS IS MY WUNDERWAFFE AGAINST GLOWNIGGERS

FUCK GLOWIES

FUCK GLOWIES

FUCK GLOWIES
>>
basado
>>
>>545783577
Fuck off skitzo
Take your fucking pills already
>>
>>545783994
KYS
>>
File: it is truly.png (4 KB, 515x112)
4 KB PNG
>>545783936
Ty, and np fren.
Please leave some BUMPS so more frens see the thread.
>>
File: top1000.png (73 KB, 848x718)
73 KB PNG
Of course the code is not perfect yet, but it works.
Some variables are unused because they're for parts of the code I have not added to the pastebin yet.
If you have feedback apart from that feel free to leave a reply.
Here's another image of the very useful "Top 1000" function I will add to the pastebin in one of the next versions.
>>
>>545783577

Offline BBS messaging apps were fantastic.
>>
>>545783577
>>545783594
>>545783693
>>545783715
>>545783815
fuck off pratyuksh you jeetoid filth no one is buying whatever slop you're selling
>>
>>545784949
So writing letters?
>>
>>545783577
If the internet goes down what use is looking at old shit? Get the fuck off the screen you feeble chimp.
>>
File: shills.jpg (63 KB, 590x787)
63 KB JPG
>>545785034
>>545785068
KYS
>>
File: glowie mask.png (178 KB, 601x501)
178 KB PNG
DEATH TO ALL GLOWNIGGERS

DEATH TO ALL GLOWNIGGERS

DEATH TO ALL GLOWNIGGERS
>>
>>545783577
If the internet goes down i have everything I need to make and play quake maps non stop indefinitely into the future, why would I browse an archive of gay ass retarded glow nigger bots?
>>
File: 1793376698742952.png (307 KB, 1211x890)
307 KB PNG
>>545783577
Bump.
>>545783632
>>545783745
>>545785034
Same glowniggers trying to derail thread as the other time. Don't stop posting these threads anon. Very helpful for some.
>>
why the fuck would i want to browse ancient 4chan posts?
>>
>>545785411
gotta collect all the 1pbid slidethreads or that 1 infographic that everyone has 50 versions of saved anyway
>>
>>545785554
My code has a keyword search function that totally bypasses this problem.
Coming soon.
>>
>>545783577
Are you that Jeet from ETH?
Anyway goodspeed!
>>
>>545787906
>Are you that Jeet from ETH?
NO I'm not that disgusting jeet Pratty but I'm from ETHZ too kek.
>>
File: x.png (112 KB, 829x911)
112 KB PNG
Everything works also for the other 4plebs .csv archives, this is a Top 1000 rank of /x/ about 2020-2026 for example:
>>
>>545785374
Thanks bro.
Of course I will go on, I "suffer" from almost pathological perseverance.
>>
File: x2.png (106 KB, 791x851)
106 KB PNG
As you can see, not all posts with many replies are rolls, bait or slideposting.
>>
File: o.png (92 KB, 785x851)
92 KB PNG
Do you like cars?
>>
An example of what you can do with the word search function.
These are the old .txt files similar to what you produce using the pastebin code, now the final code saves fully formatted HTMLs instead.
>>
Very cool, give all links and such, we need to decentralize the entire internet infrastructure, break the communication bottleneck
>>
File: receive.png (7 KB, 240x240)
7 KB PNG
>>545791147
One step at a time, you can already load millions of posts and get an early .txt output with the code in the pastebin.

Not obligatory, but if you're a richfag give me some monero!
>>
Bump because glowies hate shit like OP, just like the dissenter app that got nuked from orbit.
>>
File: 1791293654020.jpg (39 KB, 337x461)
39 KB JPG
So much shills in desperate attempts to demotivate OP. That means you are doing really good job. Please go on and keep publishing updates. Remember, these ones are probably not even human beings.
>>
File: 1792849427851322.jpg (108 KB, 850x750)
108 KB JPG
>>545783577
i don't understand a thing of what you're doing but keep up the good work!
>>
>>545783577
Based.
Keep going op glowniggers mad
>>
>>545783577
Kino, bump, glowniggers stay mad
>>
File: pepe matrix.gif (536 KB, 800x792)
536 KB GIF
>>545791657
>>545791741
>>545792004
>>545792027
>>545792193
Based frens, thank you!
ABSOLUTE FREEDOM OF SPEECH
NO COMPROMISES
>>
I legit am on vacation for 6 months beach front so do whatever
>>
>>545791147
This. And it used to be a lot more decentralised before it got jewed up by monopolisers like PooTube, Faceache etc. while we’re at it why not create servers and tor nodes and other infrastructure to form a parallel community.
>>
>>545792375
post badge, make us happy
>>
>>545792507
What my unemployment badge lol?

Im unemployment employable
>>
>>545792693
I hoped for something spicier... like a CIA or FBI or NSA badge or similar...



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