type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
#!/usr/bin/python3 | |
from bs4 import BeautifulSoup | |
import requests | |
URL = "http://192.168.225.1/cgi-bin/en-jio/mStatus.html" | |
page = requests.get(URL).text | |
soup = BeautifulSoup(page, 'html.parser') |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
Question Code:FEDEX
Write a Python script which will scrape the FEDEX website to obtain the tracking details of the given shipment tracking details. The output by the script should be in JSON format.
Input: 744668909687
Expected Output:
{ "tracking no": 744668909687,
"ship date": "Wed 19/07/2017",
"status": "delivered",
"scheduled delivery": "Mon 24/07/2017 16:21"
I hereby claim:
To claim this, I am signing this object:
import requests | |
from bs4 import BeautifulSoup | |
import csv | |
count_sub = 0 | |
count_main = 0 | |
def subcrawl(suburl): | |
suburl = "http://moneycontrol.com" + suburl |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
import speech_recognition | |
import pyttsx | |
speech_engine = pyttsx.init('sapi5') # see http://pyttsx.readthedocs.org/en/latest/engine.html#pyttsx.init | |
speech_engine.setProperty('rate', 150) | |
def speak(text): | |
speech_engine.say(text) | |
speech_engine.runAndWait() |