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 requests | |
from bs4 import BeautifulSoup | |
import unicodecsv | |
import re | |
#uses unicodecsv for generating a CSV. I'm using python 2.7 | |
#if you use Python 3.X, go with "csv" and change the related instructions accordingly. | |
#Beware of | |
# csv.writer(open("FILE.csv"), "wt") |
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
#!/usr/bin/env python | |
import requests | |
from bs4 import BeautifulSoup | |
import unicodecsv | |
#uses unicodecsv for generating a CSV. I'm using python 2.7 | |
#if you use Python 3.X, go with "csv" and change the related instructions accordingly. | |
#Beware of | |
# csv.writer(open("FILE.csv"), "wt") |
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
<svg xmlns="http://www.w3.org/2000/svg" height="800" width="848"><g transform="translate(40,0)"><path d="M0,441.6666666666667C114.66666666666666,441.6666666666667 114.66666666666666,90 229.33333333333331,90" style="fill: none; stroke: rgb(204, 204, 204); stroke-width: 1px;" class="link"></path><path d="M0,441.6666666666667C114.66666666666666,441.6666666666667 114.66666666666666,200 229.33333333333331,200" style="fill: none; stroke: rgb(204, 204, 204); stroke-width: 1px;" class="link"></path><path d="M0,441.6666666666667C114.66666666666666,441.6666666666667 114.66666666666666,226.66666666666666 229.33333333333331,226.66666666666666" style="fill: none; stroke: rgb(204, 204, 204); stroke-width: 1px;" class="link"></path><path d="M0,441.6666666666667C114.66666666666666,441.6666666666667 114.66666666666666,240 229.33333333333331,240" style="fill: none; stroke: rgb(204, 204, 204); stroke-width: 1px;" class="link"></path><path d="M0,441.6666666666667C114.66666666666666,441.6666666666667 114.66666666666666,253.333333 |
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 requests | |
def exists(url): | |
r = requests.get(url) | |
print r.status_code | |
""" | |
if r.status_code == 200: #requests.codes.ok: | |
print "daje" | |
else: | |
print None |
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
# -*- coding: utf-8 -*- | |
""" | |
The MIT License (MIT) | |
Copyright (c) 2013 Joan Creus <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |