Hangman

Um jogo de forca feito para o MITx: 6.00.1x Introduction to Computer Science and Programming Using Python.

Usando a API GeoJSON

[box type=”info” ]In this assignment you will write a Python program somewhat similar to http://www.pythonlearn.com/code/geojson.py. 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 place_id from the JSON. A place ID is a textual identifier that uniquely identifies…

Extraindo dados do JSON

[box type=”info” ]In this assignment you will write a Python program somewhat similar to http://www.pythonlearn.com/code/json2.py. The program will prompt for a URL, read the JSON data from that URL using urllib and then parse and extract the comment counts from the JSON data, compute the sum of the numbers in the file and enter he sum below. We provide two…

Extraindo dados de XML

Exercício do capítulo 13 do módulo “Usando o Python para acessar dados na web“, no Python for Everybody.

 

Raspando HTML com o BeautifulSoup

Exercício do Capítulo “Usando o Python para acessar dados na web“, no Python for Everybody.O código lê um dos arquivos, encontra tags <span> e soma seus conteúdos.

 

Seguindo links com BeautifulSoup

Capítulo “Usando o Python para acessar dados na web“, no Python for Everybody.