Anonymous ID: 2c7069 Sept. 2, 2021, 3:29 a.m. No.14507976   🗄️.is 🔗kun   >>7988 >>7994 >>8002 >>8005 >>8055 >>8124 >>8349

>>14507942

TYB, please update dough with new version

 

>>14479211 pb

8Kun Image Viewer 0.2

A python script hacked together that takes a link for an image from 8kun that is not working due to resolution problems and attempts to open the image using all the known IP addresses for media.8kun.top

Why

media.8kun.top is not resolving and you cannot change your hosts or DNS settings, or you need sys workaround

Install

Install python 3.x (should be an option on all platforms, even mobile)

Open your command prompt or terminal or equivalent and enter "python –version" if you get back the version of python then you have python installed and working.

Copy the script from https://pastebin.com/PbRqU9ZU into a new file called image.py

Use

Copy the link for the image that you want to open.

From a terminal, command prompt or equivalent, ensuring the saved image.py is in the same folder enter "python image.py" followed by a space and then paste the copied link. eg:

>python image.py https://media.8kun.top/file_store/f35298c815d2087b2d7f54e99e364ba972972bbe7db4688ec0896629ac318c15.png

New

  • 0.2 - Added options for sys workaround, as well as known supported file types, use python image.py –help for more info

  • 0.1a - Quality of life updates. Script now waits until you close the first image that works and then closes. Better for repeated uses

  • 0.1 - Initial

Anonymous ID: 2c7069 Sept. 2, 2021, 4:15 a.m. No.14508071   🗄️.is 🔗kun   >>8075 >>8095

>>14508055

>Great, will do!

It should technically work on mobile but would be a major multitasking hassle, only worth the effort if you have no other choice and absolutely have to see what that fucker posted.

 

>Should it just be in notepad as a .py?

Yeah, does not matter what you call it, cause you will be specifically calling it with python from the folder you saved it in, so even if you manage to call it something.py.txt, when you are in the command prompt you can tab complete the name so the extension doesn't really matter too much.

Anonymous ID: 2c7069 Sept. 2, 2021, 4:23 a.m. No.14508089   🗄️.is 🔗kun   >>8092

>>14508075

That works for the most part, script was created more for the hosts issue, now it mostly serves as a parameter based method to rename the link and try to open it based on the switches used, as more things break and we find workarounds, or unbreak, script will be updated if possible.

Anonymous ID: 2c7069 Sept. 2, 2021, 4:32 a.m. No.14508101   🗄️.is 🔗kun   >>8112

>>14508095

Yep, confirms that would work, you could also have done

> python image.py -s https://media.8kun.top/file_store/f35298c815d2087b2d7f54e99e364ba972972bbe7db4688ec0896629ac318c15.png/f35298c815d2087b2d7f54e99e364ba972972bbe7db4688ec0896629ac318c15.jpg?n=39237936698

That way using the switches the script does the renaming for you, you just have to copy and paste the same link. For example to view the image you posted I used

> python image.py -s -p https://media.8kun.top/file_store/30931f93995b298ade3f398d5e082a47e86f683d5b6be7b20e537877d1e1fdbc.png/ClipboardImage.png

Anonymous ID: 2c7069 Sept. 2, 2021, 4:44 a.m. No.14508128   🗄️.is 🔗kun   >>8174

>>14508112

parser.add_argument('url', help='Link to image')

parser.add_argument('-s', default=False, dest='s', action='store_true', help='Enable sys workaround, short link only works with jpg')

parser.add_argument('-p', default=False, dest='p', action='store_true', help='Also rename png to jpg, must use longer dl link')

parser.add_argument('-g', default=False, dest='g', action='store_true', help='Also rename gif to jpg, must use longer dl link')

parser.add_argument('-v', default=False, dest='v', action='store_true', help='Verbose output')

Anonymous ID: 2c7069 Sept. 2, 2021, 5:02 a.m. No.14508179   🗄️.is 🔗kun   >>8187 >>8190 >>8224 >>8234 >>8278

>>14508161

Ok, you are talking like you are in windows, so open a command prompt by right clicking on start icon, select run, type in cmd and press enter. The command prompt should start in your user folder for the account you are logged in as, you should be able to enter "cd docu" hit tab and it will probably complete to "cd Documents", if it completes to other stuff keep hitting tab until you get the right one, or just do it manually, now in here enter "mkdir scripts" that will create a new folder under documents, now "cd scripts" then "notepad image.py" you should be asked to create it. Now in that notepad paste the script and close notepad, saving if it asks. Then back at the command prompt you were just in do the python image.py

Anonymous ID: 2c7069 Sept. 2, 2021, 5:44 a.m. No.14508313   🗄️.is 🔗kun   >>8327 >>8340

>>14508266

Negative, have found no evidence yet. Checked the border closures but they seem to have started longer ago than the strike, either still unreported or fizzer.

>Brazil on the other hand…

>https://www.youtube.com/watch?v=0SPLXbV7GFw

>On Brazilian independence day, sept 7, their truckies are blocking the highways, but letting through normal private traffic, so that everyone can gather/protest. Video is of trucks on their way to the capital/blockade

 

>>14508278

>now back to cdm…to do this

Nice, if I've guided farmers to replace their motherboards before cases were modular, over the rotational telephone, we can get this working eventually.

Anonymous ID: 2c7069 Sept. 2, 2021, 5:57 a.m. No.14508373   🗄️.is 🔗kun   >>8380 >>8397

>>14508327

from where you are

> pip install requests

it will so some searching and requirements checking and downloading, it might ask you to confirm download or install of additional packages since it is a new python install. We are installing the requests module

> https://pypi.org/project/requests/

It is a common "library" of functions to use within python, in this case http requests, we use this module to download the image while haxzoring the function to use the resolvers we specify to resolve the link to the image (just splicing the ip address into the link itself wont work cause it'll piss off the ssl cert)

If you get the same problem with something else that is being imported use the same process, if unsure use pip -h to figure out how to use pip search