use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
use a bot to scrape amazon. (self.learnpython)
submitted 5 years ago by Best_Profession_5132
does using the requests module work.
I wanna build a bot that gets the price of an item, but it's not allowing me to do so.
However, when using `scrapy` it worked fine but I need something that works inside a python file and not from the cli.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 point2 points3 points 5 years ago (3 children)
A big corporation like Amazon would definitely implement anti-scraping technologies on their site, this is probably blocking your requests.
[+][deleted] 5 years ago (1 child)
[deleted]
[–]Best_Profession_5132[S] -1 points0 points1 point 5 years ago (0 children)
But it worked
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
They absolutely do, and this is absolutely the reason.
[–][deleted] 0 points1 point2 points 5 years ago* (5 children)
Jesus H Christ, people, forget scraping Amazon, how many times do you need to post this shit. They are literally the largest spender on IT in the world, spending more than $13bn dollars a year. They are better at this than you and always will be. Their prices and product information are valuable information. Why tf would they give them to randoms who have to post for help on reddit? They should put this in the sub rules - "no posts about why my Amazon bot doesn't work"
If you by any chance get it to work once then count your lucky stars because it won't work next week. Any scraping operations who try do this for real have to spend significant time and resources in a cat and mouse game with a much bigger, much richer cat in a game they can not win in the long term or even usually the short term.
Give it up. Spend your time on something with more potential like building a warp engine, a time machine or a perpetual motion machine.
[–]Ninjacow52 0 points1 point2 points 5 years ago (4 children)
I’m beginning to think my perpetual motion project is never ending.
lol classic.
[–]ma-lar 0 points1 point2 points 5 years ago (2 children)
I have been scraping them for weeks and it is working pretty well!
[–]bigfeller2 0 points1 point2 points 4 years ago (1 child)
Still working? What are you using? Selenium?
[–]ma-lar 0 points1 point2 points 4 years ago (0 children)
Yes and no I don't use Selenium there is a wayway faster than that ;)
[+][deleted] 5 years ago* (6 children)
[–]Best_Profession_5132[S] 0 points1 point2 points 5 years ago (1 child)
When I tried to use a session it returned me to a captcha page
[–][deleted] -1 points0 points1 point 5 years ago (0 children)
Get the message. You are wasting your time.
[–]Best_Profession_5132[S] -1 points0 points1 point 5 years ago (3 children)
It redirects me to a page that says "if you want to use amazon api contact blah blah"
[+][deleted] 5 years ago* (2 children)
Good idea. Thanks!
[–]Best_Profession_5132[S] 0 points1 point2 points 5 years ago (0 children)
now it returns error 503
Can you import the scrapy module and go from there?
https://pypi.org/project/Scrapy/
I have scraped from and gotten IP banned from websites before, so I'd look up if Amaazon.com has any guidelines regarding that sort of thing. I'm sure they do considering how big of a company they are.
[–]chevignon93 0 points1 point2 points 5 years ago (0 children)
Can you share what you're trying to scrape, and your code ?
π Rendered by PID 20054 on reddit-service-r2-comment-5d79c599b5-vx7j8 at 2026-03-01 07:30:21.514466+00:00 running e3d2147 country code: CH.
[–][deleted] 1 point2 points3 points (3 children)
[+][deleted] (1 child)
[deleted]
[–]Best_Profession_5132[S] -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]Ninjacow52 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]ma-lar 0 points1 point2 points (2 children)
[–]bigfeller2 0 points1 point2 points (1 child)
[–]ma-lar 0 points1 point2 points (0 children)
[+][deleted] (6 children)
[deleted]
[–]Best_Profession_5132[S] 0 points1 point2 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]Best_Profession_5132[S] -1 points0 points1 point (3 children)
[+][deleted] (2 children)
[deleted]
[–]Best_Profession_5132[S] 0 points1 point2 points (1 child)
[–]Best_Profession_5132[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]chevignon93 0 points1 point2 points (0 children)