Найти - Пользователи
Полная версия: парсим html
Начало » Центр помощи » парсим html
1
Vlad_Gergert
# Note - this code must run in Python 2.x and you must download
# http://www.pythonlearn.com/code/BeautifulSoup.py
# Into the same folder as this program

import urllib
from BeautifulSoup import *

url = 'http://python-data.dr-chuck.net/known_by_Fikret.html'
count = 4
position = 3
for i in range(count):
html = urllib.urlopen(url).read()
soup = BeautifulSoup(html)
tags = soup('a')
url = tags
print url
——————————————————
такой красивый код (сам писал) , но не работает . помогите ПЖЛ
FishHook
Vlad_Gergert
всем спасибо, уже сообразил
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB