New to Python

rielhard

Newbie
Joined
Dec 16, 2016
Messages
6
Reaction score
0
I just started reading python and taking a few courses online. My first project is to create something to quickly purchase an item on a website and have it auto check out for me. Am I learning the right language? Please advise
 
Yes, if you are trying to purchase an item from a website and auto add the same in the cart and make the purchase - yes, you can do that using Python. And python has a lots of libraries that will help you do the task with less code. Also, you have actually taken a good move - when you have a task in hand its easy to learn stuffs. I hope you have experience doing coding and you logical skills are not bad. Anyways, here is how I would start if I were you:

1- Learn how to open a website and access the source code using python
2- Learn how to click on elements in the site using python
3- Learn how to take data from txt file and use that to enter data on the site.
4- Take data from the site and store it in txt file

This is how I would approach.
 
Okay I will definitely keep that in mind. Thanks Sir
 
Yes, if you are trying to purchase an item from a website and auto add the same in the cart and make the purchase - yes, you can do that using Python. And python has a lots of libraries that will help you do the task with less code. Also, you have actually taken a good move - when you have a task in hand its easy to learn stuffs. I hope you have experience doing coding and you logical skills are not bad. Anyways, here is how I would start if I were you:

1- Learn how to open a website and access the source code using python
2- Learn how to click on elements in the site using python
3- Learn how to take data from txt file and use that to enter data on the site.
4- Take data from the site and store it in txt file

This is how I would approach.
 
Where do I start on getting smart on python? I.e. Websites, books?
 
Where do I start on getting smart on python? I.e. Websites, books?
Since you already have a task in hand - I would say go the web way.
Learning through books is for people who are beginners and who want to learn stuffs right from the basics.
 
Think about what you want to do and google each step of the way. Great way to piece together a program and learn everything at the same time. Do start with the basics though such as classes, functions, etc.
 
Since you already have a task in hand - I would say go the web way.
Learning through books is for people who are beginners and who want to learn stuffs right from the basics.
Not completely true. Books often give you a more solid foundation to build upon when compared to web resources. Also, not all books are aimed at beginners. :P
 
I'm taking a beginner class on Udemy right now learning the basics.
 
Easiest solution is to use selenium modulle for this - -If you will buy things, it might be a little more complicated than just using requests because they may try to see if you are a human
 
There is a course on Coursera that is about Python and web scraping and data cleaning. Have a look. I don't have the link but searching there should be quick.
 
Back
Top