This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from bs4 import BeautifulSoup | |
| import requests | |
| def get_section_links(soup): | |
| sections = [] | |
| for link in soup.find_all('a')[:20]: | |
| print(link.text, link.get('href')) | |
| if "/section/" in link.get( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from bs4 import BeautifulSoup | |
| import requests | |
| def get_section_links(soup): | |
| sections = [] | |
| for link in soup.find_all('a')[:20]: | |
| print(link.text, link.get('href')) | |
| if "/section/" in link.get( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from SimpleCV import Camera | |
| class AsciiBoi: | |
| def __init__(self): | |
| pass | |
| def preProcess(self, img): | |
| edge_img = img.edges(30, 60) |