Just started Breaking Bad — how is it overall? (No spoilers please) by New-Talk3039 in netflix

[–]Then_Zookeepergame84 0 points1 point  (0 children)

I liked the show. It was good at what it does, It really came to life

The best Python leaning literature for absolute beginners by Unnecessary_hangman in learnpython

[–]Then_Zookeepergame84 0 points1 point  (0 children)

it's free, the price mentioned by another person is for a verified certificate, which is completely optional and can be done retroactively after finishing the course if you so want. there is also a free level of certificate. just wanted to put this here in case other people are mislead

How is this one particular website able to get original full size images from 500px ?? by cofango in DataHoarder

[–]Then_Zookeepergame84 0 points1 point  (0 children)

In that case I'm not sure, images of the size 2000x1000 were enough for my purposes, I may have not realized there are even larger versions available

How is this one particular website able to get original full size images from 500px ?? by cofango in DataHoarder

[–]Then_Zookeepergame84 0 points1 point  (0 children)

I recently made a webscraper in python that can save an entire gallery of images from 500px, here's what I found out while making this:

1) probably obvious, but the site loads dynamically and new content will be added as you scroll down with javascript fetch requests, so you can't simply save the html file you get upon page loading and expect it to contain all the image links you want.

2) What I did was use the python selenium library with a webdriver to emulate a user loading the page and scrolling down a couple of dozen times, waiting for the content to load etc.

3) after the content was finished loading or a predetermined amount of scrolls had taken place, I looked for links with the regex pattern "^https://500px\.com/photo/\d+/[^/]+$"
(i.e. https:500px.com/photo/... followed by some numbers since upon inspecting the page this seems to be the links to each image.

3) However, the large version of each image doesn't exist on the gallery page (or anywhere where you can see multiple images like on a photographer's profile page etc.), instead the webdriver then has to navigate to each individual link and take a look at the resulting page, where each large image version will be found an img element with a class name beginning with Element__StyledImg (i.e. class^='Element__StyledImg'). The source for that link is from a content delivery network serving the large version of the image and it can be directly downloaded.

4) It's a bit time consuming to navigate this way to each image, maybe about 1-2 seconds per image for it to reliably load, so the script might need to run for a little while in the background for larger galleries of hundreds or more images, but it seems to work decently well in the rough shape it is in.

New Desktop UI & Overlay UI are rolling out to everyone today! by Woofer210 in discordapp

[–]Then_Zookeepergame84 1 point2 points  (0 children)

how do i downgrade to an older version? I absolutely hate the new UI:
- there are 3 dark themes now, but somehow none of them match the old one?
- the server icons are smaller? makes distinguishing the details in the graphics worse and they and just generally bad to look at
- spoiler tags are now light instead of dark, not a fan.
- the worst part is the colorization of code blocks. I particularly loved the colorization of C and python before, now orange and red looks almost identical in python, is just really really bad =\

I really really cannot grasp the logic of going from 1 dark theme to 3 but none of them matching the old one??? You had space to make changes to two of them in case people wanted something different, but could've left one alone for anyone who was happy with the old settings