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

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_2.png (264 KB, 2000x2000)
264 KB PNG
This is a Venn diagram showing the current situation for publicly accessible dumps as far as I know.
>>
File: glow cia.jpg (61 KB, 500x500)
61 KB JPG
GLOWIES ARE SLEEPING

COUNTERPSYOP TIME
>>
>>546632108
I had right-click and save webpage as...
Then play it on whatever.
With or without internet.

Good, odd movies:
https://rutracker.org/forum/tracker.php?pid=11878945

Legend of Suram Fortress
https://thehiddenbay.com/search/Legend%20of%20suram/1/99/200

Very old, largely silent movies
https://rutracker.org/forum/tracker.php?pid=7480889


Classic images:
https://rutracker.org/forum/tracker.php?pid=28206814

Rubber's Lover
https://thehiddenbay.com/search/Rubber's%20Lover%20/1/99/200

964 Pinocchio
https://thehiddenbay.com/search/964%20pinocchio/1/99/200


Homo Sapiens (post apocalyptic silent art film, for homos only)
https://rutracker.org/forum/viewtopic.php?t=5299295

You, the Living.
https://rutracker.org/forum/viewtopic.php?t=5115176

November (2017).
https://rutracker.org/forum/viewtopic.php?t=5579335

Level Five (1997) by Chris Marker.
https://rutracker.org/forum/viewtopic.php?t=1158595

Etc
>>
>>546632108
Cool, but saving a bunch of old 4chan posts was never a problem for me. If I can’t add a new shitpost to the thread then i lose 99.99% of my interest right away
>>
>>546632195
Just*

For the more smooth brained among you, lol:

Commando:
https://rutracker.org/forum/viewtopic.php?t=5691969
Ravenous
https://rutracker.org/forum/viewtopic.php?t=6586909


Point Blank (Lee Marvin)
https://thehiddenbay.com/torrent/10397630/Point_Blank_(1967)1080p_BrRip_x264-_YIFY

A Lonely Place to Die
https://thehiddenbay.com/torrent/9618309/A_Lonely_Place_to_Die_(2011)1080p_BrRip_x264-_YIFY
Bone Tomahawk
https://thehiddenbay.com/torrent/12944303/Bone_Tomahawk_2015_1080p_BluRay_x264_DTS-JYK
The Last Man on Earth (1964)
https://thehiddenbay.com/torrent/11204643/The_Last_Man_on_Earth_(1964)1080p_BrRip_x264-_YIFY

Then back into:
John Michael McDonough
The Guard
*Calvary

Locke:
https://rutracker.org/forum/viewtopic.php?t=5326354
Baraka
Samsara
Mountain Language
Salvador Dali

'The Magician', I guarantee, Ingmar Bergman.
A Wind Through the Catacombs
Carpet Remnant World
A Field in England
He Died With a Fallafel in His Hand
Jan
Maya Deren
Experimental animations beyond count!.

Gold DVDs last a lifetime.
AZO, much cheaper, last half a lifetime. Go nuts.
Open-slum.org
>>
>>546632224
I've been saving my own shitposts, for years
>>
File: glow 404.png (50 KB, 255x255)
50 KB PNG
>>546632195
>>546632224
>>546632249
lmao
>>
>>546632281
>>546632283
I don’t need anything other than my own eidetic memory to remember my own shitposts as well as every thread I’ve ever been in


Good luck with your coding project though
>>
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: 1781964874272085.jpg (82 KB, 680x438)
82 KB JPG
>>546632108
Did you ever ask mods why they deleted your last thread? That was pretty fucked up.

>>546632195
How many GB do you actually have burned to discs?
>>
>>546632108
Good I hope the server gets nuked and everything is purged
>>
>>546632108
>python
saar
>>
>There is a real possibility that the internet could go down soon due to war or some AI fuckery
No there isn't.
>>
>>546632738
Fuck off CS fag, Python is great.
The source in the public domain you can convert it to C++ (or your choice) if you want.
That would be interesting to see.
>>
File: warning wtf.png (68 KB, 953x297)
68 KB PNG
>>546632637
>Did you ever ask mods why they deleted your last thread?
No but I have several ideas why. I'll try not to trigger them too much with this one.
They won't silence me, though.
>>
>>546632794
>Fuck off CS fag, Python is great.
playing around with csv in python is great until you need to load a file that is bigger than few mbs
>The source in the public domain you can convert it to C++ (or your choice) if you want.
your code is total garbage

# --- CONFIGURATION ---
if __name__ == "__main__":
# Provide the path to your file here
INPUT_CSV = "pol_2022.csv"
NUMBER_OF_PARTS = 280 # INTEGERS ONLY
saaar.......
also just make a github/gitlab page.
>>
>>546632908
>your code is total garbage
yet it works, and the SQL parts are extremely fast even with Python.
It will surely be useful to someone.
>>
>>546632908
Also I'm not a jeet you stupid fuck
>>
>>546632948
>It will surely be useful to someone.
no it wont. gpt 3.5 would spit this shit years ago (probably done a better job too.)
>>546632956
you code like one
# BEFORE RUNNING THE CODE CHANGE WORKING DIRECTORY TO WHERE YOUR .CSV FILE IS

# EXAMPLE: cd Z:\Fortune\wd

also constant CODE START comments lmao
>>
>>546632975
The goal is to get anyone with an IQ above 100 to be able to use the code, even if they're not trained in coding.
That's why I'm writing comments that can seem obvious to autistic CS fags like you.
>>
>>546632908
>also just make a github/gitlab page.
Nah I prefer pastebin. Less trannies, more minimalistic and immediate.
>>
I remember coding little quips like this long ago, scrape a porn booru by tag, some 4chan extenders before 4chanx, it was a joyous experience.
now vibesloppers took that away.
>>
>>546633009
>>The goal is to get anyone with an IQ above 100 to be able to use the code,
so why didnt you provide a binary? python windows installation has filtered many normies I know.
>That's why I'm writing comments that can seem obvious to autistic CS fags like you.
they are beyond useless, they are annoying
>>546633041
just self host cgit (it's 5 bucks a month + cheap domain for 2 dollars per year) if you care about minimalism retarded nigger. you dont know what version control system is, do you?
>>
>>546632975
>also constant CODE START comments lmao
Yes what's wrong with that?
I like how they visually separate documentation from code on Pastebin.
>>
>>546633099
I'm not paying for something I can get for free on pastebin (or that I can easily live without), lmao.
>>
>>546633101
>shitting up file with useless comments for a python-based csv display program
>>546633146
>i dont need version control system o algo

dunning kruger
>>
>>546633172
You can see all previous versions I posted here, I have my head don't need to pay a jew to check the differences between my versions lmao.
pastebin.com/u/swiss_anon
>>
>>546633217
=============================================
= CODE START =
=============================================
desu it's only useful if you are doing something more than shitty one file python goy scripts
>>
>>546633300
You're right it's indeed a goy script.
It's a script for bad goys.
>>
>>546633099
>so why didnt you provide a binary? python windows installation has filtered many normies I know.
That's exactly the reason.
If you're unable to get even a conda or spyder IDE working in an age where LLMs can explain everything to you then you're filtered.
>>
>>546633568
>conda
>spyder
lowiqGOD
>>
>>546633640
I use Spyder for data science, I like to easily see the variables, graphic output etc.
Sure there's fancier stuff you CS fags surely use now, but all the basics to mess around with code and python libraries are included in Spyder IDE.
>>
File: accelerate.gif (2.96 MB, 485x485)
2.96 MB GIF
WAKIE WAKIE AMERICAN FRENS
>>
File: 1782750427023053.png (358 KB, 680x680)
358 KB PNG
>>546632108
not installing pajeet malware, sorry
>>
File: the great filteR.png (1.11 MB, 2510x1608)
1.11 MB PNG
>>546635892
FILTERED
>>
File: 1000050860.png (295 KB, 2000x2000)
295 KB PNG
>>546632149
your venn diagram sucks
>>
>>546636982
I was drunk when I made that and didn't pay much attention to archived.moe doubles
will fix that, thanks!
>>
saar reedem the premium code or fuck the aunt the night ok???? your madarchod?? fuck
>>
File: Venn v3.png (258 KB, 2000x2000)
258 KB PNG
FUCK
Alright NOW it's done.
If there's more mismatches I'll fix them in a minute.
>>
>>546637269
lol probably could've done it in the time it took me to be a smartass but that wouldve been uncharacteristically helpful
>>
>>546637307
np man, I already have the psd file with fonts all set etc.
>>
File: top40.png (759 KB, 1397x765)
759 KB PNG
The image hash ranker can get organic memes previous to the AI slop era.
>>
>>546632108
>Swiss Anon
fucking namefags
>>
File: huh.png (695 B, 101x36)
695 B PNG
>>546639880
I'm not even namefagging.
You don't know which Swiss Anon I am.
>>
File: search_HTML_new.png (80 KB, 1899x911)
80 KB PNG
Bypass censorship, jeets and bots.
Retrieve threads and search by keyword.
Rank posts by reply count or other parameters.
The new SQL version can even query TB sized databases on disk without overloading the RAM!



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