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
# mongo_test_restaurants.py | |
# Python 2.7.6 | |
""" | |
Test script to connect to MongoDB collections using pymongo library | |
Connects to an already imported connection named "restaurants" | |
source - https://docs.mongodb.org/getting-started/python/ | |
""" | |
from pymongo import MongoClient, ASCENDING, DESCENDING |
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
# uk_mba.py | |
# Python 2.7.6 | |
""" | |
Extract business schools in UK with AACSB, AMBA and/or EQUIS accredition only | |
Scapring from http://find-mba.com/ | |
""" | |
import requests | |
from BeautifulSoup import BeautifulSoup |
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
# mailbot.py | |
# python 2.7.6 | |
""" | |
Mail bot sript that sends predefined response to predefined mails | |
Intended for raspberry pi, which has its dedicated mail id | |
Algorithm | |
1) Check a dedicated mailbox inbox for "unread" mails | |
2) For each "unread" mail, fetch the sender, subject and content |
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
# crawler.py | |
# Python 2.7.6 | |
""" | |
Crawl a page and extract all urls recursively within same domain | |
""" | |
from BeautifulSoup import BeautifulSoup |
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
# nltk_name_classifier.py | |
# Python 2.7.6 | |
""" | |
Classifier to determine the gender of a name using NLTK library | |
Classification - task of choosing the correct class label for a given input. | |
Supervised classifier: | |
Classifier that is built on training corpora containing the correct label |
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
# print_docs.py | |
# Python 2.7.6 | |
""" | |
Print all documents from set of folders using default printer | |
""" | |
import os | |
import win32print | |
import win32api |
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
# vin_bot_hello.py | |
# Python 2.7.6 | |
""" | |
Python app to interact with Telegram bot | |
""" | |
import telepot | |
import time |
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
# vinbot.py | |
# Python 3.5 | |
""" | |
@vin_robot is my telegram bot; telegram.me/vin_robot | |
This python script listens to commands sent to bot and responds accordingly | |
""" | |
import telepot |
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
# uk_mba.py | |
# Python 2.7.6 | |
""" | |
Extract business schools in UK with AACSB, AMBA and/or EQUIS accredition only | |
Scapring from http://find-mba.com/ | |
""" | |
import requests | |
from bs4 import BeautifulSoup |
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
# UKBschools.py | |
# Python 3.5 | |
""" | |
Scrap the list of all accredated BSchools in UK from find-mba.com | |
export the list to excel | |
""" | |
import requests |