Python Forum
Python Code Improvement (15 y.o kid)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Code Improvement (15 y.o kid)
#1
down vote
favorite
I was wondering about for some time should I show my (should I say) first Python project that has a little bit of usage, not that much, but it may be valuable for someone, you don't know.

My project is about scraping prices from certain product on eBay. It uses BeautifulSoup and Requests to take out prices of product, on another (for example) 30 pages (so, if one page has 50 products, 30 pages should have 1.5k).

After all, it scrapes 1.5k prices from the products and finds the average price of that product. My question is:

Is there something interesting I should add in this project (because it's not intereseting and useful) to make it a little bit "normal". I thought to add for example for some certain country or something like that, but I think I need your help. Can you tell me should I add something like that for country and show someone that project. I am 14 y.o so please don't judge me, I really need help.

I know this is question based on different opinions, but I think this is the only place to ask and get a normal answer!

Also, if you have any idea I should add, feel free to say it! Thank you in advance! (Also if you manage to tell me idea, please say what do I need to learn to make it happen)
Reply
#2
Don't be afraid to show your code. You may get some very useful advise on improvements you could make,
or learn some new shortcuts.
Reply
#3
Cross post: https://stackoverflow.com/questions/5120...utifulsoup

Your post is very difficult to follow. My recommendation would be: created a Github, post your code there, document your code thoroughly (I assume it's not documented), and then post back here.
Reply
#4
Crosspost https://bytes.com/topic/python/answers/9...15-y-o-kid
Reply
#5
Well, the price is something subjective. You should add to the price of each offer the shipment price too and after that get the average. You can print how many products fit in the average price and for example the top 10 sellers with the highest rating from that list. Ask yourself if you are a buyer what you would look for and what do you want to know to make a decision for a purchase.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#6
I was thinking about this. Wouldn't automating websites like those be technically prohibited? I know I have seen a lot of videos and blogs being taken down because they promoted scraping on such websites..
Reply
#7
eBay has filters so you can do this without scrapping the website but it's good for learning.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020