Project: Electronics Bash - #23- Raspberry Pi and the Internet
One computer isn't cool. You know what's cool? A billion computers.
And a few million other computers to connect them together.
This week, we'll continue delving into programming on the Raspberry Pi with Python, and how we can connect to the internet to receive data, scrape websites, and influence our programs with online data.
Topics Include:
- Getting web data with the Requests library
- Parsing HTML using Beautiful Soup
- Python Dictionaries
- API's - what are they and how can we use them?
Code
Requests - Hello World
Click here to view code on GithubBeautiful Soup - Hello World
Click here to view code on GithubBeautiful Soup - Get List
Click here to view code on GithubBeautiful Soup - Get E-Bash Links
Click here to view code on GithubCTA - Naive
Click here to view code on GithubCTA API Basic
Click here to view code on GithubCTA Arrivals
Click here to view code on GithubCTA Pygame Display
Click here to view code on GithubYouTube Stats
Click here to view code on Github-
Resources and Links
Links and Resources:
Raspberry Pi Homepage: https://www.raspberrypi.org/
Raspberry Pi OS: https://www.raspberrypi.org/downloads/
MagPi Magazine: https://magpi.raspberrypi.org/
Python Reference: https://docs.python.org/3/tutorial/index.html
Getting Started:
Raspberry Pi Imager: https://www.raspberrypi.org/downloads/
Troubleshooting Guide: https://www.raspberrypi.org/learning/troubleshooting-guide/
Display Troubleshooting: https://www.raspberrypi.org/documentation/hardware/display/troubleshooting.md
Starting w/o a Monitor: https://bit.ly/33IvKCc
Materials:
Video on Raspberry Pi Supplies: https://youtu.be/zeHvQZzkxbk
Raspberry Pi 4: https://www.adafruit.com/product/4292
Power Supp;y: https://amzn.to/2PiU6u6
MicroSD Card: https://amzn.to/2EHfHdA
MicroSD Card Reader: https://amzn.to/2EEmNiR
Micro HDMI to HDMI Cable: https://amzn.to/3jWffYW
Keyboard and Mouse: https://amzn.to/39LRX3v
Cat5 Cable: https://amzn.to/2EzoJcm
Some of the above links are Amazon affiliate links - ordering products through these links provides a small amount of support to the channel at no cost to you.