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
from __future__ import division | |
from bs4 import BeautifulSoup as bs | |
import requests | |
import re | |
import time | |
from pymongo import MongoClient | |
from time import mktime | |
from datetime import datetime | |
import plotly.plotly as py | |
import plotly.graph_objs as go |
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
In [7]: import cx_Oracle | |
--------------------------------------------------------------------------- | |
ImportError Traceback (most recent call last) | |
<ipython-input-7-d1ecebcba3d2> in <module>() | |
----> 1 import cx_Oracle | |
ImportError: DLL load failed: The specified module could not be found. |
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
====== | |
Videos | |
====== | |
DevOps | |
What is DevOps? by Rackspace - Really great introduction to DevOps | |
https://www.youtube.com/watch?v=_I94-tJlovg | |
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept) |
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
"""" | |
Input : | |
{'fruits':{'a':'no','b':'no',c:'yes'},'vegetables':{'x':'no','y':'yes'}} | |
Output: | |
[{'fruits':{c:'yes'},'vegetables':{'y':'yes'}}] | |
(if value contain "no" then remove that pairs) | |
""" |
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
# input : data = ["a","b","c"] | |
# | |
# output : data = ["a"."b"."c"] | |
>>> data = ["a","b","c"] | |
>>> data | |
['a', 'b', 'c'] | |
>>> str(data) | |
"['a', 'b', 'c']" |
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
from requests import get | |
from re import compile | |
html = get( 'http://www.ancebergamo.it/schedaimpresa.asp?idimpresa=1263') | |
text = html.text | |
textRegex = compile(r'<title>(.*)</title>') | |
data = textRegex.search(text) | |
print 'data.group()', data.group() | |
print 'data.group(0)', data.group(0) |