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
''' Script to fetch recent google news articles matching a keyword | |
* Utilizes Google News RSS feed | |
Requirements: | |
requests - pip install requests | |
newspaper - pip install newspaper3k | |
''' | |
import json | |
import re |
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
import os | |
import sys | |
from crontab import CronTab # naturally, this needs to be pip installed | |
def cronjobs(delete=False): | |
"""Add or remove cron jobs""" | |
cron = CronTab(user=True) | |
success_ops_comment = 'success ops weekly pending logged activities' \ |
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
if answer == 'Y' or answer == 'y': | |
print("Well, what are you waiting for? Guess how many humans are in space right now:\n> ") | |
answer = input() | |
if answer == info["number"]: | |
print("Of course. Google, right? \n\n:( ") | |
else: | |
print("Wrong! There are {} people in space right now.".format(info["number"])) | |
print("\n That'll be one billion dollars. I'll take cash.") |