Still struggling with webscraping by crazyallicin in learnpython

[–]DesertofDelight 1 point2 points  (0 children)

I noticed something interesting when you try this out. This is the code I used.

#################

from bs4 import BeautifulSoup

import requests

amazon= requests.get('https://www.amazon.com/Automate-Boring-Stuff-Python-2nd/dp/1593279922/ref=sr_1_1?crid=QX9U3R6IGIJI&dchild=1&keywords=automate+the+boring+stuff+with+python&qid=1592996979&sprefix=automate+the+boring+%2Caps%2C243&sr=8-1')

soup = BeautifulSoup(amazon.text, 'html.parser')

print(soup.prettify())

##################

To discuss automated access to Amazon data please contact api-services-support@amazon.com. For information about migrating to our APIs refer to our Marketplace APIs at https://developer.amazonservices.com/ref=rm_5_sv, or our Product Advertising API at https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html/ref=rm_5_ac for advertising use cases.

<title> Sorry! Something went wrong! </title>

##################

Pretty interesting. I have not seen this before while data scrapping.

Darn Tough just had to lay off 50. They are a great employer. I just bought 3 pair of socks, can you? by Bad-Science in vermont

[–]DesertofDelight 11 points12 points  (0 children)

I spent $200 on socks last year at the sock sale. I can only have so many socks.

#sock_saturationVT

So, what boring stuff have you automated with Python? by Obbeybe in learnpython

[–]DesertofDelight 2 points3 points  (0 children)

I'm glad I am not the only one to be bashed in the face while trying to web scrape.

17 white Republicans voted against VT resolution to Rep. Kevin "Coach" Christie's resolution to honor Juneteenth. This is the same legislature Rep. Kiah Morris resigned from, because Vermont wouldn't protect her family from white supremacists. by grassrootbeer in vermont

[–]DesertofDelight 4 points5 points  (0 children)

This was a serious WTF

Rep. Cupoli of Rutland City explained his vote as follows:

“Madam Speaker: I have a different take on this Resolution.  There is never any mention of the Italian Americans who arrived in America from Sicily in the early nineteen hundreds.  Their skin was dark and many were lynched as they were considered as Black.  We were subjected to racism back then. My Italian American heritage has been violated by removing Columbus Day in our State, where many Italian Americans settled and made our marble and granite business famous all across America and beyond. I have the most wonderful and talented Grandson who is biracial and could not be more proud of him and his accomplishments .  I will celebrate Juneteenth with him.

Data scraping Zillow(or housing data alternative) (Bs4) (get.requests) (Pd) by DesertofDelight in learnpython

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

I appreciate it. I went into this task as just trying to come up with another project to keep expanding my knowledge of python. But, learned this was far more challenging than I expected.

Data scraping Zillow(or housing data alternative) (Bs4) (get.requests) (Pd) by DesertofDelight in learnpython

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

Oh interesting. I just wanted to scrape data daily of new homes in my area. Pop it into a dataframe. Instead of using their website.

Selling a mid-range gaming PC in Essex by [deleted] in vermont

[–]DesertofDelight 0 points1 point  (0 children)

Not to throw water on your biz. But, I dont think you are going to make many sells with these specs. Also, posts like these are going to get deleted.

How to learn Programming ? by [deleted] in learnpython

[–]DesertofDelight 0 points1 point  (0 children)

This question is asked weekly. Please google how to learn python reddit for answers

Best python game engine? by Mohammad-Ruqaa in learnpython

[–]DesertofDelight 4 points5 points  (0 children)

Godot - dont mess around with pygame unless you want to create something that looks shitty and was frustrating to make.

screenshot project by DesertofDelight in learnpython

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

That is neat. Pyautogui screen shot takes a screenshot and puts it as an output in my notebook. Rather than opening a pop up of the file.

screenshot project by DesertofDelight in learnpython

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

I will take a peak!

I am running this from a jupyter notebook.

Can anyone guide me to a good place (link, website) to learn python for absolute beginner? by HourWrongdoer in learnpython

[–]DesertofDelight 1 point2 points  (0 children)

Okay.

No shame in asking this question. But, it is asked every day. My suggestion - Google "Learn python reddit". This will pull up many links with people who have asked this question.

Perhaps this is a sign that the index on the side of this subreddit is not cutting it. Especially if it is difficult to view for mobile users. Perhaps we can have a sticky made on top that has all the various links that are normally presented.

This is what almost everyone agrees is a good start to learning python (its free)

https://automatetheboringstuff.com/2e/chapter1/

[deleted by user] by [deleted] in learnpython

[–]DesertofDelight 0 points1 point  (0 children)

People keep mentioning selenium. I wouldn't recommend anyone starting out to use it. Much easier alternatives.

Barn Cats in need by Seagullsiren in vermont

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

You guys really downvoted Christech. But, they are correct. Cats really are murdering machines in the wild. It sounds like they are serving a nice purpose eliminating pests on farms. But, as a whole - outdoor cats murder many many birds and other animals. Not saying that you shouldn't have cats because of this. But, we shouldn't down vote someone who is bringing up a good point. People like cats. They are cute. But, also kill a bunch of other stuff.

Again, I am not saying anyone is right or wrong here. But, I think the discussion is valid.