print(i, x)
def main():
f = open("C:\\Users\\Desktop\\zs.txt", "r")
for i in f:
try:
r = requests.get(i, 'html.parser')
soup = BeautifulSoup(r.content, 'html.parser')
for i in soup.find_all('div', class_="h1"):
title = i.text
print(title)
input()
except Exception:
print(traceback.format_exception(*sys.exc_info())[1])
input("End ")
def main():
try:
r = requests.get('http://www.irk.gov.ru/events/news/detail.php?ID=19531', 'html.parser')
soup = BeautifulSoup(r.content, 'html.parser')
for i in soup.find_all('div', class_="h1"):
title = i.text
print(title)
input()
except Exception:
print(traceback.format_exception(*sys.exc_info())[1])
input("End ")
def main():
f = open("C:\\Users\\Desktop\\zs.txt", "r")
for i in f:
try:
r = requests.get(i, 'html.parser')
soup = BeautifulSoup(r.content, 'html.parser')
for i in soup.find_all('div', class_="h1"):
title = i.text
print(title)
input()
except Exception:
print(traceback.format_exception(*sys.exc_info())[1])
input("End ")
def main():
try:
r = requests.get('http://www.irk.gov.ru/events/news/detail.php?ID=19531', 'html.parser')
soup = BeautifulSoup(r.content, 'html.parser')
for i in soup.find_all('div', class_="h1"):
title = i.text
print(title)
input()
except Exception:
print(traceback.format_exception(*sys.exc_info())[1])
input("End ")
var b = false;
$(window).scroll(function() {
if (!b) {
if ($(window).scrollTop() > 300) { //если прокрутили на 300 вниз
$('body').append('<button class="btn_up animated bounce" />');
b = true;
}
};
if ($(window).scrollTop() == 0) { //если прокрутили вверх до 0
$('.btn_up').remove();
b = false;
};
$('.btn_up').click(function() {
$('body, html').animate({'scrollTop': 0}, 500);
});
});
$(window).scroll(function() {
if (!$("button").is(".btn_up")) {
$('body').append('<button class="btn_up animated bounce" />');
}
else {
//pass
}
наверно у меня версия петона старая... а прав админа нет