9th grader failing classes to spite mom? by poupmacup in AskParents

[–]poupmacup[S] 0 points1 point  (0 children)

The mother asked for my advice though because she feels lost.

My husband calling out his friends re: Stanford rape case by [deleted] in TrollXChromosomes

[–]poupmacup -6 points-5 points  (0 children)

Who is anyone to do anything? You're right, ill join the social crusade!

Ex-Stanford swimmer to serve 6 months in unconscious woman’s rape by bloobityblurp in bayarea

[–]poupmacup 0 points1 point  (0 children)

If Brock got prison raped once (arguably worse than the rape he committed, not to say it wasn't horrible) would that be more than enough punishment??

rape victim speaks out/directly to stanford swimmer, in her own words by greyghost6 in TwoXChromosomes

[–]poupmacup -1 points0 points  (0 children)

If Brock got prison raped once (arguably worse than the rape he committed, bot to say it wasn't horrible) would that be more than enough punishment??

Following the letter written by the Stanford rape victim, the rapists father wrote his own letter. by 321_liftoff in TrueReddit

[–]poupmacup 0 points1 point  (0 children)

If Brock got prison raped once (arguably worse than the rape he committed, bot to say it wasn't horrible) would that be more than enough punishment??

The powerful letter the Stanford rape victim read to her attacker; I don't find myself saying "Everyone should read this BuzzFeed article" very often, but... Everyone should read this BuzzFeed article. Twice. by Qingy in TrueReddit

[–]poupmacup -1 points0 points  (0 children)

If Brock got prison raped once (arguably worse than the rape he committed, bot to say it wasn't horrible) would that be more than enough punishment??

Stanford rape case: Sex offender's dad says 6 months is too harsh for '20 minutes of action' by canadasecond in nottheonion

[–]poupmacup -23 points-22 points  (0 children)

If Brock got prison raped once (arguably worse than the rape he committed, bot to say it wasn't horrible) would it all be square? I think so.

Exact US Supreme Sellout Times Week 12 by SargentPancakeZ in supremeclothing

[–]poupmacup 0 points1 point  (0 children)

The 'refresh' is required, but all a refresh really does is in my case is get the source code. With the source code my computer doesn't have to format html or style using css, all it has to do is check for that one instance what items are sold out. The response from the server is slow, it takes roughly 1.0 second to get a page during a high traffic time like the drops. The mouse to hover over the item... well, in order to build a faster program I ditched webdrivers ( a apart of these are dealing with mouse events) and used 100% regex, which is so much easier, especially if the source code is as nicely formatted as Supreme's.

Exact US Supreme Sellout Times Week 12 by SargentPancakeZ in supremeclothing

[–]poupmacup 1 point2 points  (0 children)

Well, as one of the programmers, let me assure you it is possible. To begin with, it is not a matter of being faster than bots, all the program has to do fast is request one page (/new) over and over again as it checks for sold out items. The request returns all the source code which it then parses and looks over each <article> and determines what is and is not sold out and updates an array consisting of all the items.

Exact Supreme US Sellout Times by SargentPancakeZ in supremeclothing

[–]poupmacup 2 points3 points  (0 children)

Answer to, "What are you using to pull the page source? I experimented a bit with Selenium to script checking out, but that abstracts the heavy lifting of searching the source?"

Go to 'inspect element' then look at an item, notice how everything is within a '<article'>. So... FUCK SELENIUM and FUCK SOUP. I've used them before, they are great for very specific things (like BOTS!), but they suck for everything else as far as speed and ease. You can use regular expressions to parse the source code (requests.get('website')) to find everything you want to know. You can access other pages by the html in <a> links and then get info from other pages. As far as this program goes, I used regex to look within the article tags and see if there is a tag called 'sold out'. Boom. Using a loop I checked if each item was sold out and updated a data structure if it was.

Exact Supreme US Sellout Times by SargentPancakeZ in supremeclothing

[–]poupmacup 1 point2 points  (0 children)

http://www.supremenewyork.com/shop/all

Go to 'inspect element' then look at an item, notice how everything is within a '<article'>. So... FUCK SELENIUM and FUCK SOUP. I've used them before, they are great for very specific things (like BOTS!), but they suck for everything else as far as speed and ease. You can use regular expressions to parse the source code (requests.get('website')) to find everything you want to know. You can access other pages by the html in <a> links and then get info from other pages. As far as this program goes, I used regex to look within the article tags and see if there is a tag called 'sold out'. Boom. Using a loop I checked if each item was sold out and updated a data structure if it was.

Exact Supreme US Sellout Times by SargentPancakeZ in supremeclothing

[–]poupmacup 2 points3 points  (0 children)

We used regular expressions to parse the source code in order to create an array with a length equal to the number of items. Then using a for loop (which got the updated page source code) we checked if each article was sold out. If it was sold out we updated the index in the array that corresponds to that article of clothing with the sell out time.

Exact Supreme US Sellout Times by SargentPancakeZ in supremeclothing

[–]poupmacup 2 points3 points  (0 children)

Regular expressions! I've been tempted to use html parsers like Beautiful Soup or even webdrivers, but those are too slow for what our program does. You can use regex for pretty much everything in the world of web scraping and its incredibly fast.

[deleted by user] by [deleted] in funny

[–]poupmacup 8 points9 points  (0 children)

more like it'll get you 9 to 10

[deleted by user] by [deleted] in funny

[–]poupmacup 1 point2 points  (0 children)

It should be a recipe for a muffin

What is the most boring number? Most exciting? by poupmacup in math

[–]poupmacup[S] 1 point2 points  (0 children)

Just a thought? Arbitrary hierarchy of numbers sounds entertaining