View on GitHub

Lecture Series

Python, AI, and Cybersecurity Resources

Example code

  1. Stock - yfinance
  2. Stock - pandas_datareader
  3. Altcoin - binance
  4. Trend Keyword - Google Trend
  5. Trend Keyword - Blackkiwi
  6. Spot-NFL
  7. Spot-Premier League
  8. Weather

Descriptions

Stock - yfinance

Step 1. Pypi Yahoo! Finance’s API

Step 3. Github.io

Stock - pandas_datareader

Step 1. Pypi Pandas Datareader

Step 3. Example Code

Altcoin - binance

Step 1. Binance APIs

Step 2. Default packages install

pip install requests

Step 3. Example Code

Trend Keyword - Google Trend

Step 2. Select RSS Feed

I have an RSS Feed, not Scraping, so I put that in too. If you have RSS, this is the way to go.

Step 3. Get RSS feed URL

Step 4. Other National information

Step 5. Example Code

Step 6. Cmd stdout

NFL Schedule

Step 1. NFL Web page

Step 2. Mouse right button click, Inspect select

Step 3. Match code and text

Step 4. Copy Full XPath

Step 5. Two type information

Step 6. Parsing string

Step 7. Chrome selenium mode (Automation test mode)

Step 8. Example Code

Step 9. Cmd stdout

Premier League Schedule

Step 1. Premier League Web page target

Step 2. Mouse right button click, Inspect select

Step 3. Match Web and Code

Step 4. Two type information

Step 5. Finished and upcoming matches

Step 6. Merge two

Step 7. Chrome selenium mode (Automation test mode)

Step 8. Example Code

Step 9. Cmd stdout

Weather

Step 1. Weather Web site

Step 2. Mouse right button click, Inspect select

Step 3. Target city

Step 4. Arrow down and Return key

Step 5. Change city

Step 6. Code copy

Step 7. Detect iframe

Step 8. Switch iframe

Step 9. Chrome selenium mode (Automation test mode)

Step 10. Example Code

Step 11. Cmd stdout