1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New to Python

Discussion in 'General Scripting Chat' started by rielhard, Dec 16, 2016.

  1. rielhard

    rielhard Newbie

    Joined:
    Dec 16, 2016
    Messages:
    6
    Likes Received:
    0
    Gender:
    Male
    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
     
  2. coollady123

    coollady123 Newbie

    Joined:
    Feb 4, 2008
    Messages:
    20
    Likes Received:
    0
    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.
     
  3. rielhard

    rielhard Newbie

    Joined:
    Dec 16, 2016
    Messages:
    6
    Likes Received:
    0
    Gender:
    Male
    Okay I will definitely keep that in mind. Thanks Sir
     
  4. rielhard

    rielhard Newbie

    Joined:
    Dec 16, 2016
    Messages:
    6
    Likes Received:
    0
    Gender:
    Male
     
  5. rielhard

    rielhard Newbie

    Joined:
    Dec 16, 2016
    Messages:
    6
    Likes Received:
    0
    Gender:
    Male
    Where do I start on getting smart on python? I.e. Websites, books?
     
  6. coollady123

    coollady123 Newbie

    Joined:
    Feb 4, 2008
    Messages:
    20
    Likes Received:
    0
    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.
     
  7. zacatictac

    zacatictac Jr. VIP Jr. VIP

    Joined:
    May 2, 2010
    Messages:
    654
    Likes Received:
    767
    Occupation:
    SEO
    Location:
    Metaverse
    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.
     
  8. Haaskis

    Haaskis Newbie

    Joined:
    Jun 5, 2012
    Messages:
    19
    Likes Received:
    4
    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
     
  9. rielhard

    rielhard Newbie

    Joined:
    Dec 16, 2016
    Messages:
    6
    Likes Received:
    0
    Gender:
    Male
    I'm taking a beginner class on Udemy right now learning the basics.
     
  10. redrolives

    redrolives Newbie

    Joined:
    May 26, 2015
    Messages:
    35
    Likes Received:
    2
    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
     
  11. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,050
    Likes Received:
    10,833
    Occupation:
    WHEREZ MA
    Location:
    BITCOINS AT?
    Home Page:
    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.
     
  12. frostbyte

    frostbyte Junior Member

    Joined:
    Nov 7, 2007
    Messages:
    100
    Likes Received:
    32