Try the custom AI to help you find products that Reddit loves.
I fiddled around with the code you provided and found a few things:
However, since we want this to work all the time, we've got to be more sneaky. I know you mentioned you tried Selenium and still didn't have luck, but I tried anyway and had much more success. It seems Amazon is unable to tell that my webdriver is being controlled by a script. Interestingly, when I got the page source here it was parsed just fine by any parser. I'm not sure why that is.
Here's the code I used. YMMV depending on what webdriver you have installed, but let me know if this helps at all! If not, hopefully we can troubleshoot it :)
from bs4 import BeautifulSoup
from selenium import webdriver
url = "https://www.amazon.com/Learning-Python-5th-Mark-Lutz/dp/1449355730/ref=sr_1_2?keywords=python&qid=1578434952&sr=8-2"
browser = webdriver.Chrome()
content = browser.page_source
soup = BeautifulSoup(content, "html.parser")
title = soup.find(id="productTitle")
For me, this outputs <span class="a-size-extra-large" id="productTitle">Learning Python, 5th Edition</span> as expected.
<span class="a-size-extra-large" id="productTitle">Learning Python, 5th Edition</span>
Mark Lutz has some great books on Python programming. The most recent 5th edition is a great resource and asset for any python programmer.
> "Sai consigliarmi qualche libro su cui studiare?"
L'unico che abbia mai usato è stato "Learning Python", poi per altri linguaggi ho sempre solo usato docs su internet e tanta pratica (e tanto leggere codice di altri su GitHub!).
> "Perché purtroppo Java?"
Perché è un linguaggio che reputo mediocre per diversi motivi e che ho sempre trovato incredibilmente limitato. Detto questo, se è solo per imparare i fondamentali di OOP può anche andare bene, ma se dovessi usarlo nel quotidiano probabilmente preferirei lanciarmi da una finestra 😄
> "penso che inizierò anch’io da C o da Python"
Ottima scelta! Soprattutto anche C, che ti costringe ad avvicinarti da subito e imparare concetti come puntatori, allocazione di memoria e altre cose più di basso livello 🙂
Ciao! Non sono sicura di essere la persona più adatta. Io lo sto studiando in università, ma è un corso molto breve. Non so quando riuscirò a riprenderlo in mano ed approfondire.
Credo però che ci sia veramente tantissimo materiale online. Come libro, io ne utilizzo come base questo: https://www.amazon.it/dp/1449355730?tag=hackr069-21&geniuslink=true. È molto striminzito, ma potresti utilizzarlo come "indice" per poi approfondire i vari contenuti.
I used Learning Python. This one. It’s long and can be dry, but if you read it and do the exercises, I think it’d be good. It’s very thorough for someone starting out in a way the usual recommendations aren’t.
The best way to learn programming fundamentals is not to use python at the beginning. To my mind, it's better to start with, for example, C++. All the basic OOP principles, memory management and so on. Understanding C++, you understand why python is so slow sometimes.
I don't know good video courses, but there is a pretty good book. It contains all the basics and way more, even metaprogramming stuff
I also would like to master Python while I'm stuck at home, but I've been studying for the Microsoft 70-740 which I am taking on Saturday from home. I bought this book from Amazon since it seems to be pretty well regarded. Hopefully I will start that once I pass. I have a C.S. minor, so I think I can skim a lot of it.
Have you looked at Mark Lutz's 1600 page behemoth? I haven't read it cover-to-cover, but it was a useful reference for the GPYC exam.
Learning Python is honestly the only thing I can recommend. Whether you already know a programming language or not, it is the most comprehensive resource for truly understanding Python from the bottom up.
I've looked at a lot of the other resources suggested in this subreddit and they teach you how to use Python but not how to use it and understand why it works the way it works.
This is a great resource for the community - thank you for it!
I'm curious as to where the list of books comes from, and how they get categorized. Is that done manually?
In particular, I didn't see Lutz' "Learning Python" on the site, but it is listed in the GitHub issues. That's one I could definitely provide a review of!
Many programming text books have an accompanying web site where errata and answers to exercises can be found. I haven't read this book so I don't know if that's the case. The rating and reviews would certainly make me consider buying it , even at that price.
Probably the best book I have read on python. Okay, still reading.
I've just bought this book http://www.amazon.com/Learning-Python-Edition-Mark-Lutz/dp/1449355730 and I'm interested how much time will I need to spend learning python from it, to the point where I can be pretty badass at programming Raspberry Pi and such things. I also know C and basics of C#.
There are few reasons that fact that mentioned book is published in Poland is quite important to me:
a) I'm Polish so polish is my native language and my English could be better
b) polish issues of popular books about Python are translated very slowly, for example: we don't have polish translation of this famous book yet (older editions were published here)
c) books are quite expensive here, I'm not one hundred percent sure if my interest in Python is worth the investment
d) original editions of books about programming are very expensive here
e) I have read good opinions about this book
I am also trying to learn python during summer break and am currently reading Learning Python The book is a little thick on information but I tend to skip around a bit. It has been a great learning resource for me personally but I don't really have anything to compare it to.
I did this in 15 minute chunks on my breaks. I used /r/inventwithpython a free web book to get started.
I used http://www.amazon.com/Learning-Python-Edition-Mark-Lutz/dp/1449355730 to get a primer on all the hard core stuff.
and then I just started browsing /r/learnpython , /r/python , the python.org docs and practicing my own stuff.
and all of it 15 minutes at a time.
I'm current using learn python 5th edition and i have to say its been really good covers 2.7 and 3.3, its slightly behind the most current update but a really good book in general.
Also the book teaches you about ides you can choose from and such to help you make the best choice for you.
Python crash course is excellent and the 3 books I would recommend for anyone just starting with python would be:
Python Crash Course (I like this book but I think it can be skipped)
How to Think Like a Computer Scientist
Problem Solving with Algorithms and Data Structures using Python
If you are more into theory I would choose:
Learning Python, 5th Edition
I like Learning Python — it’s long and dry but very thorough and gets you to think about a lot of the finer points.
I mean, I loved my high school's C++ and Java classes. I'd previously tried to teach myself and couldn't wrap my head around it, but my high school teacher did great. The only thing I taught myself is Python, and I think this was the book I used (I borrowed it from my college prof, so I'm not 100% sure):
I used Learning Python and Programming Python 3.
Wesley Chun and David Beazley have some texts you may also want to check.
Get a general Python book covering the language and then another that shows its application through examples.
A book maybe?
Tons of reasons!
A) the numpy/scipy/matplotlib libraries make it a legitimate replacement for matlab. Halfway through my MSAeroE I flipped over to using python 100% of the time. It's free matlab and SO much more of an enjoyable language.
B) It has an insane number of built-in libraries: sockets, IO, serial, ftp, ctypes, which make it super powerful for learning embedded controllers (eg Raspberry Pi),
C) I've solely worked aerospace in my career, Both companies used python heavily for verification testing and development process automation. For good reason too, just about anything you need to do is 3 lines: import library, instantiate class, call method
D) It has a really powerful OOP implementation that feels natural, but you also don't have to understand OOP to use the language.
E) It's pretty reliably in the #1 slot for languages these days. Every person I interview I ask about their python skills.
F) I've used it to automate testing of aircraft flight displays, do data analysis for ATP/QTP of flight hardware, made an autopilot system for grad school, implemented AHRS algorithms on a raspberry pi for drone avionics. It's capabilities are wide and for an interpreted language it's not bad for speed.
Here's Vanilla Python installer: https://www.python.org/
Here's what I use (has Numpy, Matplotlib, lots of great libraries as well) https://www.anaconda.com/products/individual#Downloads
This site seems decent: https://www.learnpython.org/ so does the https://www.python.org/about/gettingstarted/ site too.
I learned from this book: https://www.amazon.com/Learning-Python-5th-Mark-Lutz/dp/1449355730/
Dude I would! I have many times and it’s an amazing book! Also pick up Learning Python, 5th Edition https://www.amazon.com/dp/1449355730/ref=cm_sw_r_cp_api_glt_fabc_BXS33TDPYBGH97S3N3VE
Both Sublime and PyCharm are solid options. Other people have suggested VS Code, Vim and others, which are fine too. The IDE you use really is a personal choice, although if you do know some Python programmers you may benefit from getting to know their IDE set up for inspiration.
For learning, I do think it would help to pick a book and follow it to the advanced chapters. I like this one: https://www.amazon.com/Learning-Python-5th-Mark-Lutz/dp/1449355730
Maybe I'm old-fashioned but I like that it drives you through most of the important concepts one after the other. Then you can also expand your horizons by picking books such as The Pragmatic Programmer which aren't Python-specific.
I'm a psychology major, I learned to code by doing literally every tutorial on the first page of google 'python beginner tutorial', used Codecademy's intro courses, and repeating a lot of tutorials a few times, because it took a while to sink in.
I've made a few games since (and am now working on this strategy game shameless plug!), so I think anyone can learn to code if you just keep throwing yourself at it over and over again.
I also read https://www.amazon.com/Learning-Python-5th-Mark-Lutz/dp/1449355730/, even if it was harder to follow along with a paperback instead.
I think the tl;dr though is that it won't be easy and it'll be frustrating a lot of the time, but the highs you get are crazy satisfying.
Hello! /u/RageBill has already provided a great response, but I still wanted to add a couple of my own thoughts.
I would also suggest seeing if your highschool or university offers any computer science courses, and if so, sign up for the beginner class!
Best of luck!
Edit: most people will go back and forth all day on which language you should learn first, which are the most useful, etc. If you’re just starting out it can be easy to become overwhelmed with decision paralysis. If you’re just starting out you’ll want to pick a language based on how easy it is to pick up, and the level of support the community at large provides the language (how easy is it to find answers to problems on google?).
Especially if you’re brand new, the goal is to learn the basics and fundamentals and not necessarily wrestle with more advanced or “obscure” technicalities or concepts.
For these reasons (among others), the vast majority of entry level university computer science courses stick with python. If you google search the top ten most popular programming languages python is almost always on that list, along with Java.
I would recommend starting with python while you learn the basics and fundamentals of programming and computer science.
Of course these are just my thoughts and opinions and plenty of people will disagree. The point of what I’m trying to say is: don’t spend too much time debating which programming language to learn first, just pick one! You can always learn more later!
I had a look at the reviews on Amazon and there seem to be more than a few reviews along the lines of "too big", "bloated" and "not for beginners".
Whether a book works for you really depends on you. You might respond better to a book that explains every step in great detail compared to a book that assumes some level of programming knowledge, or the slow approach might be boring. Before buying a book you could road test it by reading the free ebook samples that Amazon provides.
Also look at the suggested resources in the /r/learnpython wiki.
If you really want to learn about Python:
If you want to get up and running and have a good book to do some practice exercises and build some fun stuff:
if you buy the digital version makes sure you email the publisher to get an updated format so the code doesn't show up weird
Yes, I'm halfway into
I didn't have to upgrade to win10 , win 7 update was enough
If you were serious about wanting some deep as-you-go knowledge of software development but from a Pythonic point of view, you cannot go wrong with following a setup such as this:
Mark Lutz writes books about how and why Python does what it does. He goes into amazing detail about the nuts and bolts all while teaching you how to leverage all of this. It is not light reading and most of the complaints you will find about his books are valid if what you are after is not an intimate understanding of the language.
Fluent Python is just a great read and will teach you some wonderful things. It is also a great follow-up once you have finally made it through Lutz's attempt at out-doing Ayn Rand :P
My recommendation is to find some mini projecting sites that focus on what you are reading about in the books above.
Of course this does not answer your question about generic books. But you are in /r/Python and I figured I would offer up a very rough but very rewarding learning approach if Python is something you enjoy working with.
Here are three more worth adding to your ever-increasing library :)
Learning Python by Mark Lutz.
I found this book to be a great resource. I think it pairs well with Zandbergen.
o'reilly books are pretty good, but a bit pricy (imo worth it)
The Epic Learning Python is your best bet.
> where do I start?
What's your learning style?
Do you prefer e-learning exercises with short feedback loop?
Do you prefer following along with a textbook?
Do you prefer to learn in a more traditional course environment with lectures, readings and assignments?
Have you seen the learning resources in the sidebar?
> Is the RPi Python the same as PC Python?
The Pi runs a version of Debian Linux by default, I think. So you'll have access to full-blown python 2 and 3.
> I want to make robots, should I use Python 2 or 3? Or Python at all?
You can make robots with any language that can talk to a microcontroller. Python has existing libraries which can help with that. You'll have to do your own research into this, because I don't know much more than that.
Firstly, pat yourself on the back, because learning Python is one of the best things
you can do !
secondly, my take on this is that ... firstly, decide for yourself your motives. Meaning, decide what you wanna develop or create using Python. Don't look at others ! Decide for yourself what it is that interests you. If you like Python then sky is the limit, really. There's very little that you can't do with Python. Web development (Django, Flask, Pyramid, ...), Game development (pygame for 2D, Panda3D for 3D games), Network programming, Software development, GUIs, Robotics Development and the list goes on ....
Speaking of resources. None of those resources you've mentioned are bad. You'll learn something interesting using each of those. Personally, I'd recommend this book https://www.amazon.co.uk/Learning-Python-Mark-Lutz/dp/1449355730/ref=sr_1_1?ie=UTF8&qid=1531034109&sr=8-1&keywords=learning+python it is rather extensive (over 1500 pages) but only because this book is meant to be covered as a semester. The author even says that you should give yourself 6 months to get grasp on the content. It's not meant to be a crash course. Perhaps you'll agree that crash courses aren't always the best, especially if you're trying to understand something on the deeper level. Crash courses are meant to give you introduction to the topic and get code somewhat running but if you're seeking deeper understanding you need to go for a book or extensive online course on Coursera. Always look for what it covers and just use your common sense.
But first decide what it is that you want to develop with Python and take your learning journey from there.
http://www.amazon.com/Learning-Python-Edition-Mark-Lutz/dp/1449355730 this book is the best for learning - if you want to understand how Python really works.
>Reste que quand tu as fait ta vie dans une branche, la reconversion, abstraitement pas de problème, mais en réalité, souvent ça coince.
Boom, magique pour moins de 30€ c'est fini le chômage. C'est fou, pas vrai ? ��