- Tapa blanda: 134 páginas
- Editor: Packt Publishing (17 de junio de 2015)
- Idioma: Inglés
- ISBN-10: 1784395412
- ISBN-13: 978-1784395414
- Valoración media de los clientes: Sé el primero en opinar sobre este producto
Compara Precios en Amazon
+ Envío GRATIS
Python Requests Essentials (Inglés) Tapa blanda – 17 jun 2015
Descripción del producto
Reseña del editor
If you are a Python administrator or developer interested in interacting with web APIs and have a passion for creating your own web applications, this is the book for you. Basic knowledge of Python programming, APIs, and web services will be an advantage.
Biografía del autor
No es necesario ningún dispositivo Kindle. Descárgate una de las apps de Kindle gratuitas para comenzar a leer libros Kindle en tu smartphone, tablet u ordenador.
Obtén la app gratuita:
Detalles del producto
Si eres el vendedor de este producto, ¿te gustaría sugerir ciertos cambios a través del servicio de atención al vendedor?
Opiniones de clientes
|5 estrellas (0%)|
|4 estrellas (0%)|
|3 estrellas (0%)|
|2 estrellas (0%)|
|1 estrella (0%)|
Opiniones de clientes más útiles en Amazon.com
Released in the summer of 2015, Python Requests Essentials is a short title that targets a small niche of intermediate Pythonists, those interested in communicating with some external web service through HTTP(s). But while on the one hand it is taken for granted that the reader knows the basics of the language, on the other hand the most important concepts of the HTTP protocol are quickly refreshed by the author.
As stated, it is a very short book, which spans through only 140 pages, divided into 7 chapters—what can be delivered in roughly 20 pages per chapter? Quickly moving through the table of contents we can see the authors' choice to cover the internals of the Requests library in two chapters only and to dedicate all the others to see it in action, doing some goodd web scraping and analysing the social media. Fine, so time to dive into the contents.
The very first chapter does nothing but show how Requests makes the life of a developer easier over the good old urllib. The same example is solved using each library in such a way that Requests looks awesomely better. The urllib code is indeed unnecessarily complicated, thus achieving the planned result. Chapter 2 and 3 dissect an HTTP transaction through the Requests library. These are, as said already, the only chapters where the reader is shown the internals of the library and how to use it to build HTTP requests, as well as deal with a response. The authors show plenty of examples—don't get too exited, more on them in a minute—covering different scenarios, including downloading and uploading files, filling forms and dealing with (continuous) streams. Customization of an HTTP request is also presented.
Unit testing is important. We all do it, don't we? Since it is such an essential step in the development of great software, what follows is a chapter dedicated to HTTPretty used to mock HTTP requests. Nothing wrong with it. Still, Pythonists have many other options, including HTTP Mock. It owuld have been interesting to see the most important ones compared and their use with Requests. The remaining chapters briefly show the readers how to combine Requests with other Python utils, such as Beautiful Soup or Flask, to built on top of third-party web services. The topics covered are interesting, no doubts. Despite this, most of the pages are dedicated to explain basic concepts such as what is web scraping or Flask, resulting in very little said about the topic of the chapter itself.
Overall the book provides little or nothing more than the official documentation. Many concepts are taken into the discussion, but almost no details are given, as if the whole book were Chapter 1, where the subject is quickly introduced. The examples, well, there are indeed plenty of examples throughout these seven chapters, but apart rare occasions, do not expect anything that goes beyond four lines. No real world examples, just tons of "hello world" like one liners that show little or nothing at all, and that certainly do not go beyond what the official documentation shows already.
Before tying it all up a couple of notes. First, the book shows proofreading problems, which shows poor caring and definitely lowers the overall value. And second, the price is quite absurd for such a tiny book, given its content. Not suggested, even at a lower price. The official documentation and Stack Overflow provide much better details and examples for free.
As usual, you can find more reviews on my personal blog: books.lostinmalloc.com. Feel free to pass by and share your thoughts!
Technical content - 4 stars (I only found a couple minor technical errors and the coverage was pretty solid)
Writing/Readability - 2 stars (the book would benefit from a round of solid editing)
Overall applicability - 3 stars (the book would benefit from more than just the code snippets)
This book is very challenging to review. On one hand it has lots of solid content. On the other the author's writing is very difficult to read. It is unfortunately clear that the author isn't a native English speaker and there are lots of odd word choices that are very jarring for most English readers. Why this wasn't fixed in the editing stage is a bit of a mystery. A thorough edit to clean up the grammar and word choices would handily move this book to four stars for me.
The technical content is done in a "cookbook" style. Basically the author runs through a list of things needed to be accomplished with the subject matter and shows a short code snippet demonstrating the specific topic (like how to do web authentication for instance). Overall it works but if you come to the subject light on background understanding of web and HTTP then you will probably struggle to get full value. I'd love to see more robust examples and more complete code samples with realistic small applications. Many of the chapters like the one on web scraping could benefit significantly from this.
In the end I think the book serves as a solid introduction to the Requests module for Python. If you're looking for what is essentially a more robust module documentation then this book is for you. If you're looking to really get a thorough understanding of using Requests then this probably isn't your best option.
I recently heard about Requests, as an alternative for urllib2, then I came across this book, an ideal starting point by the way, and this is the reason I have decided to give Requests a chance.
The book has shown a perfect touch about the subject itself, going from basic concepts, such as how it is used with basic examples and then having a look at all the possibilities: different types of Request contents, accessing cookies with Requests, authentication with Requests just to mention some of them but there are so many that this is why Requests itself deserves a book.
Apart from the possibilites offered by Requests, you will find some practical applications, Chapter 5 and 6 show some examples using Requests. In Chapter 5 you will find some examples interacting with different Social Media, Facebook API, Twitter API and reddit API. If you are interested in scraping the web, Chapter 6 is very interesting because you will see there how to use Requests, with another library called BeautifulSoup, just to accomplish your goals.
For each topic, there is enough explanation of the underlying theory, and crystal clear examples everywhere. The author builds up the code in simple steps, so it's easy to follow along with the topic. Everything in this book is explained very clearly, there is enough precision, without difficult formal language. The practical example of building a web application in the seventh chapter is very impressive. On a whole this book is a best pick for those who want to play with API.
The book is straightforward it tells about how to make HTTP requests, going from basic concepts like how to make Request calls and how not to. The book also explains about contents, accessing cookies, authentication with Requests just to mention some of them but there are many more that this book talk about.