Skip to content

Commit

Permalink
Change references to py4e
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Feb 20, 2017
1 parent 18294a8 commit e718241
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 35 deletions.
Binary file modified artwork/Chuck_16x9_bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tools/python-data/comment_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
-->
<b>Scraping Numbers from HTML using BeautifulSoup</b>
In this assignment you will write a Python program similar to
<a href="http://www.pythonlearn.com/code/urllink2.py" target="_blank">http://www.pythonlearn.com/code/urllink2.py</a>.
<a href="http://www.py4e.com/code3/urllink2.py" target="_blank">http://www.py4e.com/code3/urllink2.py</a>.
The program will use <b>urllib</b> to read the HTML from the data files below, and parse the data,
extracting numbers and compute the sum of the numbers in the file.
</p>
Expand Down Expand Up @@ -122,7 +122,7 @@
tag and sum the numbers.
<p>
Look at the
<a href="http://www.pythonlearn.com/code/urllink2.py" target="_blank">sample code</a>
<a href="http://www.py4e.com/code3/urllink2.py" target="_blank">sample code</a>
provided. It shows how to find all of a certain kind of tag, loop through the tags and
extract the various aspects of the tags.
<pre>
Expand Down
6 changes: 3 additions & 3 deletions tools/python-data/comment_json.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<b>Extracting Data from JSON</b>
<p>
In this assignment you will write a Python program somewhat similar to
<a href="http://www.pythonlearn.com/code/json2.py" target="_blank">http://www.pythonlearn.com/code/json2.py</a>.
<a href="http://www.py4e.com/code3/json2.py" target="_blank">http://www.py4e.com/code3/json2.py</a>.
The program will prompt for a URL, read the JSON data from that URL using
<b>urllib</b> and then parse and extract the comment counts from the JSON data,
compute the sum of the numbers in the file and enter the sum below:<br/>
Expand Down Expand Up @@ -99,9 +99,9 @@
</pre>
<p>
The closest sample code that shows how to parse JSON and extract a list is
<a href="http://www.pythonlearn.com/code/json2.py" target="_blank">json2.py</a>. You might also want
<a href="http://www.py4e.com/code3/json2.py" target="_blank">json2.py</a>. You might also want
to look at
<a href="http://www.pythonlearn.com/code/geoxml.py" target="_blank">geoxml.py</a>
<a href="http://www.py4e.com/code3/geoxml.py" target="_blank">geoxml.py</a>
to see how to prompt for a URL and retrieve data from a URL.
</p>
<p><b>Sample Execution</b></p>
Expand Down
4 changes: 2 additions & 2 deletions tools/python-data/comment_xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<b>Extracting Data from XML</b>
<p>
In this assignment you will write a Python program somewhat similar to
<a href="http://www.pythonlearn.com/code/geoxml.py" target="_blank">http://www.pythonlearn.com/code/geoxml.py</a>.
<a href="http://www.py4e.com/code3/geoxml.py" target="_blank">http://www.py4e.com/code3/geoxml.py</a>.
The program will prompt for a URL, read the XML data from that URL using
<b>urllib</b> and then parse and extract the comment counts from the XML data,
compute the sum of the numbers in the file.
Expand Down Expand Up @@ -90,7 +90,7 @@
You are to look through all the &lt;comment&gt; tags and find the &lt;count&gt; values
sum the numbers.
The closest sample code that shows how to parse XML is
<a href="http://www.pythonlearn.com/code/geoxml.py" target="_blank">geoxml.py</a>.
<a href="http://www.py4e.com/code3/geoxml.py" target="_blank">geoxml.py</a>.
But since the nesting of the elements in our data is different than the data
we are parsing in that sample code you will have to make real changes to the code.
</p>
Expand Down
4 changes: 2 additions & 2 deletions tools/python-data/data/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
header('Content-Type: text/html');
?><html>
<head>
<title>Welcome to the comments assignment from www.pythonlearn.com</title>
<title>Welcome to the comments assignment from www.py4e.com</title>
</head>
<body>
<?php
Expand Down Expand Up @@ -285,7 +285,7 @@ function showHide(id) {
<h1>Test data sources</h1>
<p>
This application has a number of test data sources for
<a href="http://www.pythonlearn.com/" target="_blank">
<a href="http://www.py4e.com/" target="_blank">
Python for Informatics: Exploring Information</a> written by
<a href="http://www.twitter.com/drchuck" target="_blank">@DrChuck</a> /
<a href="http://www.dr-chuck.com/" target="_blank">www.dr-chuck.com</a>.
Expand Down
6 changes: 3 additions & 3 deletions tools/python-data/geo_json.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<b>Calling a JSON API</b>
</p>
In this assignment you will write a Python program somewhat similar to
<a href="http://www.pythonlearn.com/code/geojson.py" target="_blank">http://www.pythonlearn.com/code/geojson.py</a>.
<a href="http://www.py4e.com/code3/geojson.py" target="_blank">http://www.py4e.com/code3/geojson.py</a>.
The program will prompt for a location, contact a web service and retrieve
JSON for the web service and parse that data, and retrieve the first
<b>place_id</b> from the JSON.
Expand All @@ -112,8 +112,8 @@
To call the API, you need to provide a <b>sensor=false</b> parameter and
the address that you are requesting as the <b>address=</b> parameter that is
properly URL encoded using the <b>urllib.urlencode()</b> fuction as shown in
<a href="http://www.pythonlearn.com/code/geojson.py"
target="_blank">http://www.pythonlearn.com/code/geojson.py</a>
<a href="http://www.py4e.com/code3/geojson.py"
target="_blank">http://www.py4e.com/code3/geojson.py</a>
</p>
<!--
<p>
Expand Down
2 changes: 1 addition & 1 deletion tools/python-data/knows.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<b>Following Links in Python</b>
<p>
In this assignment you will write a Python program that expands on
<a href="http://www.pythonlearn.com/code/urllinks.py" target="_blank">http://www.pythonlearn.com/code/urllinks.py</a>.
<a href="http://www.py4e.com/code3/urllinks.py" target="_blank">http://www.py4e.com/code3/urllinks.py</a>.
The program will use <b>urllib</b> to read the HTML from the data files below,
extract the href= vaues from the anchor tags, scan for a tag that is in
a particular position relative to the first name in the list,
Expand Down
2 changes: 1 addition & 1 deletion tools/python-data/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name" => "Python Data",
"FontAwesome" => "fa-hdd-o",
"short_name" => "Python Data Autograder",
"description" => "This is an autograder for PHP data assignments for chapters 11-14 www.pythonlearn.com.",
"description" => "This is an autograder for PHP data assignments for chapters 11-14 www.py4e.com.",
"messages" => array("launch", "launch_grade"),
);

4 changes: 2 additions & 2 deletions tools/python-data/static/intro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ our new language skills.
Before you can converse with Python, you must first install the Python
software on your computer and learn how to start Python on your
computer. That is too much detail for this chapter so I suggest
that you consult www.pythonlearn.com where I have detailed
that you consult www.py4e.com where I have detailed
instructions and screencasts of setting up and starting Python
on Macintosh and Windows systems. At some point, you will be in
a terminal or command window and you will type python and
Expand Down Expand Up @@ -434,7 +434,7 @@ used to make the program. You are the end user, you simply use the program and
at its cleverness and how it saved you so much manual effort.
You simply type the code
into a file called words.py and run it or you download the source
code from http://www.pythonlearn.com/code/ and run it.
code from http://www.py4e.com/code3/ and run it.

This is a good example of how Python and the Python language are acting as an intermediary
between you (the end user) and me (the programmer). Python is a way for us to exchange useful
Expand Down
16 changes: 8 additions & 8 deletions tools/pythonauto/exercises3.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@
the file <b>words.txt</b> to produce the output below.".
'<p>
You can download the sample data at
<a href="http://www.pythonlearn.com/code/words.txt" target="_blank">
http://www.pythonlearn.com/code/words.txt</a>',
<a href="http://www.py4e.com/code3/words.txt" target="_blank">
http://www.py4e.com/code3/words.txt</a>',
"desired" => "WRITING PROGRAMS OR PROGRAMMING IS A VERY CREATIVE
AND REWARDING ACTIVITY YOU CAN WRITE PROGRAMS FOR
MANY REASONS RANGING FROM MAKING YOUR LIVING TO SOLVING
Expand Down Expand Up @@ -264,8 +264,8 @@
as shown below. Do not use the sum() function or a variable named sum in your solution.
<p>
You can download the sample data at
<a href="http://www.pythonlearn.com/code/mbox-short.txt" target="_blank">
http://www.pythonlearn.com/code/mbox-short.txt</a> when you are testing
<a href="http://www.py4e.com/code3/mbox-short.txt" target="_blank">
http://www.py4e.com/code3/mbox-short.txt</a> when you are testing
below enter <b>mbox-short.txt</b> as the file name.',
"desired" => "Average spam confidence: 0.750718518519",
"code" => '# Use the file name mbox-short.txt as the file name
Expand Down Expand Up @@ -305,8 +305,8 @@
When the program completes, sort and print the resulting words in alphabetical order.
<p>
You can download the sample data at
<a href="http://www.pythonlearn.com/code/romeo.txt" target="_blank">
http://www.pythonlearn.com/code/romeo.txt</a>',
<a href="http://www.py4e.com/code3/romeo.txt" target="_blank">
http://www.py4e.com/code3/romeo.txt</a>',
"desired" => "['Arise', 'But', 'It', 'Juliet', 'Who', 'already', 'and', 'breaks', 'east', 'envious', 'fair', 'grief', 'is', 'kill', 'light', 'moon', 'pale', 'sick', 'soft', 'sun', 'the', 'through', 'what', 'window', 'with', 'yonder']",
"code" => 'fname = input("Enter file name: ")
fh = open(fname)
Expand Down Expand Up @@ -347,8 +347,8 @@
<b>Hint:</b> make sure not to include the lines that start with 'From:'.".
'<p>
You can download the sample data at
<a href="http://www.pythonlearn.com/code/mbox-short.txt" target="_blank">
http://www.pythonlearn.com/code/mbox-short.txt</a>',
<a href="http://www.py4e.com/code3/mbox-short.txt" target="_blank">
http://www.py4e.com/code3/mbox-short.txt</a>',
"desired" => "[email protected]
[email protected]
[email protected]
Expand Down
2 changes: 1 addition & 1 deletion tools/pythonauto/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ function gradeit() {
are learning to program.
</p> <p>
There are three files loaded into this environment from the
<a href="http://www.pythonlearn.com/" target="_blank">Python for Informatics</a>
<a href="http://www.py4e.com/" target="_blank">Python for Everybody</a>
web site and ready for you to open if you want to
do file processing: "mbox-short.txt", "romeo.txt", and "words.txt".
</p>
Expand Down
2 changes: 1 addition & 1 deletion tools/pythonauto/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name" => "Python Autograder",
"FontAwesome" => "fa-check-square-o",
"short_name" => "Python Autograder",
"description" => "This is an autograder for the assignments from www.pythonlearn.com (Python for Informatics).",
"description" => "This is an autograder for the assignments from www.py4e.com (Python for Everybody).",
"messages" => array("launch", "launch_grade")
);

2 changes: 1 addition & 1 deletion tools/sql-intro/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is being split into two autograders. The MySQL autograders have moved to:
https://github.com/csev/php-intro/


The SQLite autograders will be moved to pythonlearn.com eventually
The SQLite autograders will be moved to py4e.com eventually


Names from:
Expand Down
8 changes: 4 additions & 4 deletions tools/sql-intro/count_lite.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@
make sure to empty out the data before each run.
<p>
You can use this code as a starting point for your application:
<a href="http://www.pythonlearn.com/code/emaildb.py" target="_blank">
http://www.pythonlearn.com/code/emaildb.py</a>.
<a href="http://www.py4e.com/code3/emaildb.py" target="_blank">
http://www.py4e.com/code3/emaildb.py</a>.
</p>
<p>
The data file for this application is the same as in previous assignments:
<a href="http://www.pythonlearn.com/code/mbox.txt" target="_blank">
http://www.pythonlearn.com/code/mbox.txt</a>.
<a href="http://www.py4e.com/code3/mbox.txt" target="_blank">
http://www.py4e.com/code3/mbox.txt</a>.
</p>
<p>
Because the sample code is using an <b>UPDATE</b> statement
Expand Down
4 changes: 2 additions & 2 deletions tools/sql-intro/many_many_lite.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
</p>
<p>
You can base your solution on this code:
<a href="http://www.pythonlearn.com/code/roster.py" target="_blank">
http://www.pythonlearn.com/code/roster.py</a> - this code is incomplete
<a href="http://www.py4e.com/code3/roster.py" target="_blank">
http://www.py4e.com/code3/roster.py</a> - this code is incomplete
as you need to modify the program to store the <b>role</b> column
in the <b>Member</b> table to complete the assignment.
</p>
Expand Down
4 changes: 2 additions & 2 deletions tools/sql-intro/many_one_lite.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
make sure to empty out the data before each run.
<p>
You can use this code as a starting point for your application:
<a href="http://www.pythonlearn.com/code/tracks.zip" target="_blank">
http://www.pythonlearn.com/code/tracks.zip</a>.
<a href="http://www.py4e.com/code3/tracks.zip" target="_blank">
http://www.py4e.com/code3/tracks.zip</a>.
The ZIP file contains the <b>Library.xml</b> file to be used for this assignment.
You can export your own tracks from iTunes and create a database, but
for the database that you turn in for this assignment, only use the
Expand Down

0 comments on commit e718241

Please sign in to comment.