This file contains 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
version: "3" | |
services: | |
cadvisor: | |
container_name: cadvisor | |
image: google/cadvisor | |
volumes: | |
- /:/rootfs:ro | |
- /var/run:/var/run:rw | |
- /sys:/sys:ro |
This file contains 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
# This file should be empty and its permission should be 600 |
This file contains 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
# Run it via command: docker-compose up -d | |
version: '3' | |
services: | |
nginx: | |
image: jwilder/nginx-proxy | |
container_name: nginx-proxy | |
ports: | |
- "80:80" |
This file contains 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
def get_message(row, soup): | |
""" | |
Returns the Markdown formatted message | |
Args: | |
row (OrderedDict): A dictionary representation of urls.csv file row. | |
soup (BeautifulSoup): A Beautiful Soup web page representation. | |
Returns: | |
message (str): Markdown formatted message | |
""" | |
price_node = soup.find('span', class_='current-price') |