This repository contains the programs featured in the second edition of the book Introducing Python.
madscheme / introducing-python Goto Github PK
View Code? Open in Web Editor NEWAn introduction to Python
An introduction to Python
Substitute example for the Youtube application is missing from the repository. Attached is the missing example program; works as described in the book. (Note: file extension changed from .py to .txt in order to get around the github file extension restrictions.)
In the book at p.220, "Fortune Cookie" API doesn't work.
Please check!
http://www.iheartquotes.com/api/v1/random
>>> import urllib.request as ur
>>> url = 'http://www.iheartquotes.com/api/v1/random'
>>> conn = ur.urlopen(url)
>>> print(conn)
<http.client.HTTPResponse object at 0x1006fad50>
All that I have found is the villains.csv file. Further, I believe that there is an error in the code on page 306, upper half that is supposed to produce the villains.csv file. I get a villains.txt file that looks exactly like the .csv file.
This will not work with the Pandas Example 16-2 later on in the book.
Also, the other examples are plainly shown to be written in the immediate mode, while this example does not. Was this a typo/editing error or is it supposed to be a python script but not completely documented as such?
macOS Big Sur 11.6. Python 3.8.9.
In net/thread_dishes.py the queue.get() method blocks the program. Consider using queue.get_nowait() and catch queue.Empty exception.
Link for youtube.py and youtube2.py no longer available
YouTube API is old. So the source code which is related to YouTube API doesn't work (youtube.py and youtube2.py).
import requests
url = "https://gdata.youtube.com/feeds/api/standardfeeds/top_rated?alt=json"
response = requests.get(url)
data = response.json()
for video in data['feed']['entry'][0:6]:
print(video['title']['$t'])
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.