I need to extract some data using python from a html page - python

This is part of a html page from which i need to extract the following items:
name from the strong tag, classification type (Actor and Singer), born and died location.
<li class="clearfix">
<div style="margin-top:10px;">
<div class="float-left" style="margin-bottom:10px;">
<a href="http://" title="Elvis Presley" name="Elvis Presley" class="float-left">
<strong>Mr. Elvis Presley</strong></a>
</div>
<div class="rating_overall fleft" style="margin:0px 0px 0px 10px;">
<div class="rating_overall voted_rating_overall" style='width:72.96px;'></div>
</div>
<span class="result-vote float-left" id="result" style="line-height:15px; color: #AAA; font-size: 0.9em; margin-top: 1px;"> (15 vots)</span>
<div class="clear"></div>
<a href="http://" title="Mr. Elvis Presley" name="Mr. Elvis Presley">
<img style="float:left;" src="http://a.jpg" alt="Mr. Elvis Presley" title="Mr. Elvis Presley" />
</a>
<br/>
<p>
<b>Classification:</b>
Actor
, Singer
<br />
<b>Born:</b> Tupelo<br />
<b>Died:</b>
Memphis,
<!--<b>City:</b>-->
Memphis
</p>
<div class="clk"></div>
</div>
</li>
I had try using the BeautifulSoup but i'm a newbie on python :
data2 = soup.find_all('li',{'class':'clearfix'})
for container in data2:
if container.find('a', {'class':'float-left'}):
name = container.a.text
print (name)
if container.find('a', {'class':'underline'}):
classification=container.div.p.a.text
print (classification)
flag
Although I didn't get any errors from the script, I managed to extract only the name and the first classification. How do I target the rest of the elements that I need: classification("Singer") and the born and died location?

You can use beautiful soup for html parser , I am showing you both first with beautiful soup and second with regex and catch the results with group capturing :
First with Beautiful soup:
string_1="""<li class="clearfix">
<div style="margin-top:10px;">
<div class="float-left" style="margin-bottom:10px;">
<a href="http://" title="Elvis Presley" name="Elvis Presley" class="float-left">
<strong>Mr. Elvis Presley</strong></a>
</div>
<div class="rating_overall fleft" style="margin:0px 0px 0px 10px;">
<div class="rating_overall voted_rating_overall" style='width:72.96px;'></div>
</div>
<span class="result-vote float-left" id="result" style="line-height:15px; color: #AAA; font-size: 0.9em; margin-top: 1px;"> (15 vots)</span>
<div class="clear"></div>
<a href="http://" title="Mr. Elvis Presley" name="Mr. Elvis Presley">
<img style="float:left;" src="http://a.jpg" alt="Mr. Elvis Presley" title="Mr. Elvis Presley" />
</a>
<br/>
<p>
<b>Classification:</b>
Actor
, Singer
<br />
<b>Born:</b> Tupelo<br />
<b>Died:</b>
Memphis,
<!--<b>City:</b>-->
Memphis
</p>
<div class="clk"></div>
</div>
</li>"""
from bs4 import BeautifulSoup
soup=BeautifulSoup(string_1,"html.parser")
for a in soup.find_all('a'):
print(a['name'])
Output:
Elvis Presley
Mr. Elvis Presley
Actor
Singer
Tupelo
Memphis
Second with regex:
Use it if the form code is same as you shown there :
import re
string_1="""<li class="clearfix">
<div style="margin-top:10px;">
<div class="float-left" style="margin-bottom:10px;">
<a href="http://" title="Elvis Presley" name="Elvis Presley" class="float-left">
<strong>Mr. Elvis Presley</strong></a>
</div>
<div class="rating_overall fleft" style="margin:0px 0px 0px 10px;">
<div class="rating_overall voted_rating_overall" style='width:72.96px;'></div>
</div>
<span class="result-vote float-left" id="result" style="line-height:15px; color: #AAA; font-size: 0.9em; margin-top: 1px;"> (15 vots)</span>
<div class="clear"></div>
<a href="http://" title="Mr. Elvis Presley" name="Mr. Elvis Presley">
<img style="float:left;" src="http://a.jpg" alt="Mr. Elvis Presley" title="Mr. Elvis Presley" />
</a>
<br/>
<p>
<b>Classification:</b>
Actor
, Singer
<br />
<b>Born:</b> Tupelo<br />
<b>Died:</b>
Memphis,
<!--<b>City:</b>-->
Memphis
</p>
<div class="clk"></div>
</div>
</li>"""
pattern=r'<strong>(\w.+)<\/strong>|<b>Classification:<\/b>(\s.+)(\s.+)|(Born:.+)|(Died:.+\s.+\s.+\s.+)'
pattern_2=r'name=["](\w.+?)["]'
match=re.finditer(pattern,string_1,re.M)
for find in match:
if find.group(1):
print("Name {}".format(find.group(1)))
if find.group(2):
print("Classificiation first {}".format(re.search(pattern_2,str(find.group(2))).group(1)))
print("Classification second {}".format(re.search(pattern_2,str(find.group(3))).group(1)))
if find.group(4):
print("Born {}".format(re.search(pattern_2, str(find.group(4))).group(1)))
if find.group(5):
print("Dead {}".format(re.search(pattern_2, str(find.group(5))).group(1)))
output:
Name Mr. Elvis Presley
Classificiation first Actor
Classification second Singer
Born Tupelo
Dead Memphis

Related

Python Trouble with find_all()

I am attempting to scrape a site for for some data on an long list of items. Below is my code:
def find_info():
page = requests.get(URL)
soup = bs(page.content, 'html.parser')
soup2 = bs(soup.prettify(), "html.parser")
lists = soup2.find_all('div', class_="featured_item")
#with open('data.csv', 'w', encoding='utf8', newline='') as f:
# thewriter = writer(f)
# header = ['Rank', 'Number', 'Price'] #csv: comma separated values
# thewriter.writerow(header)
for list in lists:
stats = lists.find_all('div', class_="item_stats")
sale = lists.find('div', class_="sale")
rank = float(stats.select('.item_stats span')[0].text)
number = stats.select('.item_stats span')[1].text.strip().replace('#', '')
price = sale.select('span')[0].text.strip().replace('◎', '')
print(rank, number, price)
find_info()
I get the following error:
Traceback (most recent call last):
File "C:\Users\Cameron Lemon\source\repos\ScrapperGUI\module1.py", line 36, in <module>
find_info()
File "C:\Users\Cameron Lemon\source\repos\ScrapperGUI\module1.py", line 27, in
find_info
stats = lists.find_all('div', class_="item_stats")
File "C:\Users\Cameron Lemon\AppData\Local\Programs\Python\Python310\lib\site-
packages\bs4\element.py", line 2253, in __getattr__
raise AttributeError(
AttributeError: ResultSet object has no attribute 'find_all'. You're probably treating a
list of elements like a single element. Did you call find_all() when you meant to call
find()?
Press any key to continue . . .
This code runs well, until I add the line for list in lists: and use find_all() instead of find(). I am very confused, because in the past I have coded to find data for the first item in the list successfully and then set a for loop and changed my find() to find_all(). Any advice is much appreciated. Thank you
Below is my lists variable, for two of the many items within it.
[<div class="featured_item">
<div class="featured_item_img">
<a href="/degds/3251/">
<img src="URL"/>
</a>
</div>
<div class="featured_image_desc" style="padding-bottom: 5px;">
<div class="item_stats">
<div class="item_stat">
rank
<span>
1
</span>
</div>
<div class="item_stat">
item no.
<span>
#3251
</span>
</div>
</div>
<div class="sale" style="height: 40px; margin-top: 10px; margin-bottom: 10px;">
<span>
not for sale
</span>
</div>
<div class="last_sale" style="font-size: 11px;">
no sale history
</div>
</div>
</div>, <div class="featured_item">
<div class="featured_item_img">
<a href="/dgds/8628/">
<img src="URL"/>
</a>
</div>
<div class="featured_image_desc" style="padding-bottom: 5px;">
<div class="item_stats">
<div class="item_stat">
rank
<span>
2
</span>
</div>
<div class="item_stat">
item no.
<span>
#8628
</span>
</div>
</div>
<div class="sale" style="height: 40px; margin-top: 10px; margin-bottom: 10px;">
<span>
not for sale
</span>
</div>
<div class="last_sale" style="font-size: 11px;">
no sale history
</div>
</div>
You are using find_all method two times. When you use for loop then you will get each item meaning list didn't exist any more. So we can't use find_all without list that's why you are getting that error.
html='''
<div class="featured_item">
<div class="featured_item_img">
<a href="/degds/3251/">
<img src="URL"/>
</a>
</div>
<div class="featured_image_desc" style="padding-bottom: 5px;">
<div class="item_stats">
<div class="item_stat">
rank
<span>
1
</span>
</div>
<div class="item_stat">
item no.
<span>
#3251
</span>
</div>
</div>
<div class="sale" style="height: 40px; margin-top: 10px; margin-bottom: 10px;">
<span>
not for sale
</span>
</div>
<div class="last_sale" style="font-size: 11px;">
no sale history
</div>
</div>
</div>, <div class="featured_item">
<div class="featured_item_img">
<a href="/dgds/8628/">
<img src="URL"/>
</a>
</div>
<div class="featured_image_desc" style="padding-bottom: 5px;">
<div class="item_stats">
<div class="item_stat">
rank
<span>
2
</span>
</div>
<div class="item_stat">
item no.
<span>
#8628
</span>
</div>
</div>
<div class="sale" style="height: 40px; margin-top: 10px; margin-bottom: 10px;">
<span>
not for sale
</span>
</div>
<div class="last_sale" style="font-size: 11px;">
no sale history
</div>
</div>
'''
from bs4 import BeautifulSoup
soup = BeautifulSoup(html,"html.parser")
lists = soup.find_all('div', class_="featured_item")
for lis in lists:
stats = lis.find('div', class_="item_stats")
sale = lis.find('div', class_="sale")
rank = float(stats.select('.item_stats span')[0].text)
number = stats.select('.item_stats span')[1].text.strip().replace('#', '')
price = sale.select('span')[0].text.strip().replace('◎', '')
print(rank, number, price)
Output:
1.0 3251 not for sale
2.0 8628 not for sale

Access child inside an element list by XPath Sales Navigator

I am trying to pull the name and position of random people from Sales Navigator. Each person shows up as a card that contains all the information. I obtain a list of the cards but then I want to get for each one the Name and Title. I have tried using the code below to get the information from a card, the HTML of one result is below.
So far, my attempts always return an error indicating that the element could not be found. How could I solve this?
def testeo(driver):
lista = driver.find_elements_by_xpath("//*[contains(#class,'pv5 ph2 search-results__result-item')]")
nombres = []
for i in range(0, len(lista)):
nombres.append((lista[i].find_element_by_xpath(".//*[contains(#class,'result-lockup__name')]").text,
lista[i].find_element_by_xpath(".//*[contains(#class,'t-14 t-bold')]").text))
<li class="pv5 ph2 search-results__result-item" data-scroll-into-view="urn:li:fs_salesProfile:(ACwAAAJ-Ab0Bu4JpScPs9SE2b8R_LP9L9vU9nM8,NAME_SEARCH,fH_T)">
<div class="pt5 absolute search-results__select-container">
<input id="search-result-ember6830" class="small-input ember-checkbox ember-view" type="checkbox">
<label class="m0" for="search-result-ember6830">
<span class="a11y-text">
Select Jean Jongejan
</span>
</label>
</div>
<div style="" id="ember6866" class="flex full-width deferred-area ember-view"> <div class="search-results__result-container full-width pl2">
<div id="ember6981" class="ember-view"> <div id="ember6982" class="ember-view">
<article>
<h3 class="a11y-text">
Profile result – Jean Jongejan
</h3>
<section class="result-lockup">
<h4 class="a11y-text">
Profile result lockup – Jean Jongejan
</h4>
<div class="result-lockup__profile-info flex flex-column">
<div class="horizontal-person-entity-lockup-4 result-lockup__entity ml6">
<figure>
<a href="/sales/people/ACwAAAJ-Ab0Bu4JpScPs9SE2b8R_LP9L9vU9nM8,NAME_SEARCH,fH_T?_ntb=ErSmZYlWS8KlI9CD0cB6Yg%3D%3D" id="ember6985" class="result-lockup__icon-link ember-view">
<div class="presence-entity--size-4 relative mr2">
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" loading="lazy" alt="Go to Jean Jongejan’s profile" id="ember6986" class="max-width max-height circle-entity-4 lazy-image ghost-person loaded ember-view">
<div class="presence-indicator presence-indicator--size-4 hidden presence-entity__indicator presence-entity__indicator--size-4" title="Reachable">
<span class="a11y-text">
Jean Jongejan is reachable
</span>
</div>
</div>
</a> </figure>
<dl>
<dt class="result-lockup__name">
<a href="/sales/people/ACwAAAJ-Ab0Bu4JpScPs9SE2b8R_LP9L9vU9nM8,NAME_SEARCH,fH_T?_ntb=ErSmZYlWS8KlI9CD0cB6Yg%3D%3D" id="ember6989" class="ember-view"> Jean Jongejan
</a> </dt>
<dd class="inline-flex vertical-align-middle">
<ul class="ml1 flex align-items-center list-style-none">
<li class="mr1">
<span class="a11y-text">
3rd degree contact
</span>
<span class="label-16dp block" aria-hidden="true">
3rd
</span>
</li>
<!----><!----><!----> </ul>
</dd>
<dd class="result-lockup__highlight-keyword">
<span class="t-14 t-bold">EXT Key Account Management & Consultancy</span>
<span>
at
<span data-entity-hovercard-id="urn:li:fs_salesCompany:36314" class="result-lockup__position-company">
<a href="/sales/company/36314?_ntb=Z6Rvdg6sRMiPD6xsYlUuFQ%3D%3D" id="ember6991" class="Sans-14px-black-75%-bold ember-view"> <span aria-hidden="true">
Marimekko
</span>
<span class="a11y-text">
Go to Marimekko account page
</span>
</a> <button aria-expanded="false" aria-label="See more about Marimekko" class="entity-hovercard__a11y-trigger p0 b0" data-entity-hovercard-id="urn:li:fs_salesCompany:36314" data-entity-hovercard-trigger="click"></button>
</span>
</span>
</dd>
<dd>
<span class="t-12 t-black--light">
3 years 11 months in role and company
</span>
</dd>
<dd>
<ul class="mv1 t-12 t-black--light result-lockup__misc-list">
<li class="result-lockup__misc-item">Breda, North Brabant, Netherlands</li>
</ul>
</dd>
</dl>
</div>
<!----> </div>
<div class="result-lockup__actions flex">
<ul class="result-lockup__common-actions">
<li class="result-lockup__action-item mb3">
<div class="display-flex">
<div id="ember6993" class="ember-view"> <div id="ember6995" class="save-to-list-dropdown artdeco-dropdown artdeco-dropdown--placement-bottom artdeco-dropdown--justification-right ember-view"><button aria-expanded="false" id="ember6996" class="save-to-list-dropdown__trigger ph4 artdeco-button artdeco-button--secondary artdeco-button--pro artdeco-button--1 m-type--message artdeco-dropdown__trigger artdeco-dropdown__trigger--placement-bottom ember-view" type="button" tabindex="0"> Save
<!----></button><div tabindex="-1" aria-hidden="true" id="ember6997" class="save-to-list-dropdown__content-container artdeco-dropdown__content artdeco-dropdown--is-dropdown-element artdeco-dropdown__content--has-arrow artdeco-dropdown__content--arrow-right artdeco-dropdown__content--justification-right artdeco-dropdown__content--placement-bottom ember-view"><div class="artdeco-dropdown__content-inner">
<!---->
</div>
</div></div>
<div id="ember6998" class="ember-view">
<!---->
<!----></div>
</div> <div class="relative">
<div id="ember6999" class="ember-view">
<div id="ember7000" class="artdeco-dropdown artdeco-dropdown--placement-bottom artdeco-dropdown--justification-right ember-view"><button aria-expanded="false" id="ember7001" class="artdeco-dropdown__trigger result-lockup__action-button m-type--more artdeco-dropdown__trigger--non-button artdeco-dropdown__trigger--placement-bottom ember-view" type="button" tabindex="0"> <span class="a11y-text">See more actions for this result</span>
<li-icon aria-hidden="true" type="ellipsis-horizontal-icon" class="artdeco-button artdeco-button--tertiary artdeco-button--1 artdeco-button--muted p0" size="medium"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" data-supported-dps="24x24" fill="currentColor" width="24" height="24" focusable="false">
<path d="M2 10h4v4H2v-4zm8 4h4v-4h-4v4zm8-4v4h4v-4h-4z"></path>
</svg></li-icon>
<!----></button><div tabindex="-1" aria-hidden="true" id="ember7002" class="artdeco-dropdown__content result-lockup__dropdown-more artdeco-dropdown--is-dropdown-element artdeco-dropdown__content--has-arrow artdeco-dropdown__content--arrow-right artdeco-dropdown__content--justification-right artdeco-dropdown__content--placement-bottom ember-view"><!----></div></div>
<div id="ember7003" class="ember-view"><!----></div>
<!----></div> </div>
</div>
</li>
<!----> </ul>
</div>
</section>
<section class="result-context relative pt1">
<h4 class="a11y-text">Profile result context – Jean Jongejan</h4>
<!---->
<!---->
<!----> </section>
</article>
</div>
</div> </div>
</div>
</li>
Can you try this?
//*[name()='dt'][#class='result-lockup__name']

BeautifulSoup: scraping for a span gives me a result, for another span it gives "None"

I am coding a scraper for Etsy and when I scrape the span for reviews I get the right output. However when I scrape for the span with the price it gives me only None values and I don't understand why. If someone could help, it would be great!
#html parsing
page_soup = soup(page_html, "html.parser")
#grabs each listing card
divs = page_soup.find_all("div", {"class": "v2-listing-card__shop"})
for i in divs:
shop = i.p.text
reviews = i.find("span", {"class" : "text-body-smaller text-gray-lighter display-inline-block vertical-align-middle icon-b-1"})
prices = i.find("span", {"class" : "currency-value"})
print shop
print reviews.text
print prices
Here are the two span elements as on the website:
<div class="v2-listing-card__info">
<p class="text-gray text-truncate mb-xs-0 text-body">
Blush Watercolor Flowers & Leaves with Different Shades Clipart Separate Elements Hand Painted Commercial Use | S15 Fairy Tale
</p>
<div class="v2-listing-card__shop">
<p class="text-gray-lighter text-body-smaller display-inline-block mr-xs-1">PatishopArt</p>
<div class="v2-listing-card__rating icon-t-2">
<div class="stars-svg stars-smaller ">
<input name="initial-rating" type="hidden" value="5"/>
<input name="rating" type="hidden" value="5"/>
<span class="screen-reader-only">5 out of 5 stars</span>
<div aria-hidden="true" class="rating lit rating-first icon-b-2" data-rating="1">
<span class="etsy-icon stars-svg-star" title="Disappointed"><svg aria-hidden="true" focusable="false" viewbox="3 3 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M19.985,10.36a0.5,0.5,0,0,0-.477-0.352H14.157L12.488,4.366a0.5,0.5,0,0,0-.962,0l-1.67,5.642H4.5a0.5,0.5,0,0,0-.279.911L8.53,13.991l-1.5,5.328a0.5,0.5,0,0,0,.741.6l4.231-2.935,4.215,2.935a0.5,0.5,0,0,0,.743-0.6l-1.484-5.328,4.306-3.074A0.5,0.5,0,0,0,19.985,10.36Z"></path></svg></span>
<div class="rating lit" data-rating="2">
<span class="etsy-icon stars-svg-star" title="Not a fan"><svg aria-hidden="true" focusable="false" viewbox="3 3 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M19.985,10.36a0.5,0.5,0,0,0-.477-0.352H14.157L12.488,4.366a0.5,0.5,0,0,0-.962,0l-1.67,5.642H4.5a0.5,0.5,0,0,0-.279.911L8.53,13.991l-1.5,5.328a0.5,0.5,0,0,0,.741.6l4.231-2.935,4.215,2.935a0.5,0.5,0,0,0,.743-0.6l-1.484-5.328,4.306-3.074A0.5,0.5,0,0,0,19.985,10.36Z"></path></svg></span>
<div class="rating lit" data-rating="3">
<span class="etsy-icon stars-svg-star" title="It's okay"><svg aria-hidden="true" focusable="false" viewbox="3 3 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M19.985,10.36a0.5,0.5,0,0,0-.477-0.352H14.157L12.488,4.366a0.5,0.5,0,0,0-.962,0l-1.67,5.642H4.5a0.5,0.5,0,0,0-.279.911L8.53,13.991l-1.5,5.328a0.5,0.5,0,0,0,.741.6l4.231-2.935,4.215,2.935a0.5,0.5,0,0,0,.743-0.6l-1.484-5.328,4.306-3.074A0.5,0.5,0,0,0,19.985,10.36Z"></path></svg></span>
<div class="rating lit" data-rating="4">
<span class="etsy-icon stars-svg-star" title="Like it"><svg aria-hidden="true" focusable="false" viewbox="3 3 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M19.985,10.36a0.5,0.5,0,0,0-.477-0.352H14.157L12.488,4.366a0.5,0.5,0,0,0-.962,0l-1.67,5.642H4.5a0.5,0.5,0,0,0-.279.911L8.53,13.991l-1.5,5.328a0.5,0.5,0,0,0,.741.6l4.231-2.935,4.215,2.935a0.5,0.5,0,0,0,.743-0.6l-1.484-5.328,4.306-3.074A0.5,0.5,0,0,0,19.985,10.36Z"></path></svg></span>
<div class="rating lit" data-rating="5">
<span class="etsy-icon stars-svg-star" title="Love it"><svg aria-hidden="true" focusable="false" viewbox="3 3 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M19.985,10.36a0.5,0.5,0,0,0-.477-0.352H14.157L12.488,4.366a0.5,0.5,0,0,0-.962,0l-1.67,5.642H4.5a0.5,0.5,0,0,0-.279.911L8.53,13.991l-1.5,5.328a0.5,0.5,0,0,0,.741.6l4.231-2.935,4.215,2.935a0.5,0.5,0,0,0,.743-0.6l-1.484-5.328,4.306-3.074A0.5,0.5,0,0,0,19.985,10.36Z"></path></svg></span>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="text-body-smaller text-gray-lighter display-inline-block vertical-align-middle icon-b-1">(110)</span>
</div>
</div>
<p class="n-listing-card__price text-gray strong mt-xs-0">
<span class="currency-symbol">$</span><span class="currency-value">6.60</span>
</p>
<!-- This shows Free shipping on its own line , we only show it if it wasn't shown above -->
</div>
You are only checking in divs of type listing-card__shop but it looks to me as if the span in question, is outside of those divs

Using SPLIT to create a list of HTML

I have a return value from a search I'm doing which returns alot of HTML.
for i in deal_list:
regex2 = '(?s)'+'<figure class="deal-card deal-list-tile deal-tile deal-tile-standard" data-bhc="'+ i +'"'+'.+?</figure>'
pattern2 = re.compile(regex2)
info2 = re.search(pattern2,htmltext)
html_captured = info2.group(0).split('</figure>')
print html_captured
Here is an example what is being returned:
<figure class="deal-card deal-list-tile deal-tile deal-tile-standard" data-bhc="deal:giorgios-brick-oven-pizza-wine-bar" data-bhd="{"accessType":"extended"}" data-bh-viewport="respect">
<a href="//www" class="deal-tile-inner">
<img>
<figcaption>
<div class="deal-tile-content">
<p class="deal-title should-truncate">Up to 73% Off Wine-Tasting Dinner at 1742 Wine Bar</p>
<p class="merchant-name truncation ">1742 Wine Bar</p>
<p class="deal-location truncate-others ">
<span class="deal-location-name">Upper East Side</span>
</p>
<div class="description should-truncate deal-tile-description"><p>Wine tasting includes three reds and three whites; dinner consists of one appetizer, two entrees, and a bottle of wine</p></div>
</div>
<div class="purchase-info clearfix ">
<p class="deal-price">
<s class="original-price">$178.90</s>
<s class="discount-price">$49</s>
</p>
<div class="hide show-in-list-view">
<p class="deal-tile-actions">
<button class="btn-small btn-buy" data-bhw="ViewDealButton">
View Deal
</button>
</p>
</div>
</div>
</figcaption>
</a>
</figure>
<figure class="deal-card deal-list-tile deal-tile deal-tile-standard" data-bhc="deal:statler-grill-4" data-bhd="{"accessType":"extended"}" data-bh-viewport="respect">
<a href="//www" class="deal-tile-inner">
<img>
<figcaption>
<div class="deal-tile-content">
<p class="deal-title should-truncate">Up to 59% Off Four-Course Dinner at Statler Grill</p>
<p class="merchant-name truncation ">Statler Grill</p>
<p class="deal-location truncate-others ">
<span class="deal-location-name">Midtown</span>
</p>
<div class="description should-truncate deal-tile-description"><p>Chefs sear marbled new york prime sirloin and dice fresh sashimi-grade tuna to satisfy appetites amid white tablecloths and chandeliers</p></div>
</div>
<div class="purchase-info clearfix ">
<p class="deal-price">
<s class="original-price">$213</s>
<s class="discount-price">$89</s>
</p>
<div class="hide show-in-list-view">
<p class="deal-tile-actions">
<button class="btn-small btn-buy" data-bhw="ViewDealButton">
View Deal
</button>
</p>
</div>
</div>
</figcaption>
</a>
</figure>
I want to use html_captured = info2.group(0).split('</figure> so that all HTML between each new set of tags become an element of a list, in this case HTML_CAPTURED.
It kind of works except that each becomes its own list with a '' at the end. For example: ['<figure .... </figure>','']['<figure .... </figure>','']
But what I want is ['<figure .... </figure>','<figure .... </figure>','<figure .... </figure>'...etc]
There are special tools for parsing HTML - HTML parsers.
Example using BeautifulSoup:
from bs4 import BeautifulSoup
data = """
your html here
"""
soup = BeautifulSoup(data)
print [figure for figure in soup.find_all('figure')]
Also see why you should not use regex for parsing HTML:
RegEx match open tags except XHTML self-contained tags

Why beautiful soup css selector result is empty?

I want to get 'a' tags inside div with the class 'x'. I'm trying this code:
u = urllib.urlopen('http://www.full-hd-wallpaper.com/all')
data = u.read()
soap = BeautifulSoup(data)
print soap.select("div.wallpaper_item a")
but the result is empty. I'm sure the selector is correct. I also tried this simple selector:
print soap.select("div")
but nothing returned. what's wrong with my code?
this is the input:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<link rel="stylesheet" type="text/css" href="/templates/darkbrush/style.css?20140420:8" />
<script type="text/javascript">
SITE_URL = '';
SEO_ON = '3';
COMMENT_WAIT = 'Please wait 60 seconds between comments';
COMMENT_ERROR = 'An error occured in sending your comment';
WALLPAPER_SUBMIT_COMMENT = 'Submit comment';
ADDING_COMMENT = 'Adding comment';
COMMENT_ADDED = 'Comment added';
function WallpaperAddHit(id) {
AjaxPost("/includes/wallpaper/ajax/wallpaper_hit.php", "wallpaper_id="+id,
function () {}
)
}
</script>
<script type="text/javascript" src="/includes/wss.js"></script>
<link rel="alternate" type="application/rss+xml" title="" href="/rss.php" />
<title>All wallpapers - Full HD Wallpaper</title><meta name="description" content="All wallpapers All our wallpapers in one place!" />
<meta name="keywords" content="Full HD Wallpapers, wallpapers 2013, full hd wallpaper,wallpapers, HD Wallpapers, HD Wallpaper, desktops, downloads,Wallpaper,hd wallpaper download, hd wallpaper nature, hd wallpaper 1920x1080, HD Wallpaper 1080p, hd wallpaper for android, " /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42003300-1', 'full-hd-wallpaper.com');
ga('send', 'pageview');
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-45774874-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<!-- Report popup and overlay !-->
<div id="ava-popup">
<div id="ava-popup-header">
<div id="ava-popup-title"></div>
<div id="popup-close-button" onclick="HidePopup('ava-popup');"></div>
</div>
<div id="ava-popup-content"></div>
</div>
<div id="overlay" onclick="HidePopup('ava-popup')"></div>
<div class="header">
<div class="header_logo">
<img src="/templates/darkbrush/images/logo.png" alt="Full HD Wallpaper" />
</div>
<div class="header_right">
<!--ads-->
</div>
<br style="clear:both;" />
</div>
<div class="menu">
<div class="menu_left">
<div class="menu_item">
Homepage</div><div class="menu_item">
New wallpapers</div><div class="menu_item">
Most Downloads</div><div class="menu_item">
Top rated</div><div class="menu_item"></div><div class="menu_item">Copyright policy</div><div class="menu_item">Contact Us </div>
</div>
<div class="menu_right">
<form action="/index.php?task=search" method="get" onsubmit="searchSubmit('', ''); return false;">
<input name="task" type="hidden" value="search" />
<div class="search_contain">
<div class="search_contain_left">
<input name="q" type="text" size="20" id="search_textbox" value="Search..." onclick="clickclear(this, 'Search...')" onblur="clickrecall(this,'Search...')" class="search_box" />
</div>
<div class="search_contain_right">
<input type="image" style="margin-top:7px;" src="/templates/darkbrush/images/search_button.png" />
</div>
</div>
</form>
</div>
</div>
<div class="mc_bg">
<div class="main_container">
<div class="secondary_container">
<div class="left_sidebar">
News
Subscribe
Links<br />
<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=FullHdWallpaper', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><input type="hidden" name="loc" value="en_US" /><input type="hidden" value="FullHdWallpaper" name="uri" /><h5>Email Subscription</h5>
<input type="text" class="email_textbox" name="email" size="20" />
<input type="submit" class="email_button" value="Subscribe" />
</form>
<br />
<h2>Categories</h2>
<div class="category_menu_item">
All wallpapers</div><div class="category_menu_item">Abstract</div><div class="category_menu_item">Animals</div><div class="category_menu_item">Nature</div><div class="category_menu_item">Men</div><div class="category_menu_item">Children</div><div class="category_menu_item">Girls and Women</div><div class="category_menu_item">World</div><div class="category_menu_item">Foods</div><div class="category_menu_item">Cars</div><div class="category_menu_item">Technology</div><div class="category_menu_item">Holiday</div><div class="category_menu_item">Other</div><div class="category_menu_item">Flower</div>
<br />
<h2>Tags</h2>
<div class="tag_cloud">Adriana lima wallpaper Alessandra ambrosio wallpaper Amber heard wallpaper Beyonce wallpaper Britney Spears wallpaper Candice swanepoel wallpaper Cheryl cole wallpaper Doutzen kroes wallpaper Elisha cuthbert wallpaper Ewelina olczak wallpapers Inna wallpaper Jennifer lawrence wallpapers Jennifer lopez wallpaper Jessica alba wallpaper Kate upton wallpaper Lady Gaga wallpaper Lindsey stirling wallpaper Marloes horst wallpaper Natalia vodianova wallpaper Nicki minaj wallpaper Nicole scherzinger wallpaper Rihanna wallpaper Robert pattinson wallpaper Scarlett johansson wallpaper Taylor swift wallpaper Woman with Car wallpaper alexandra stan wallpaper alfa romeo wallpaper aston martin wallpaper audi wallpaper bar refaeli wallpaper barbara palvin wallpaper benz wallpaper bmw wallpaper bugatti wallpaper emma watson wallpaper eva mendes wallpaper ferrari wallpaper ford wallpaper irina shayk wallpaper kate beckinsale wallpaper katy perry wallpaper kelly clarkson wallpaper lamborghini wallpaper megan fox wallpaper miranda kerr wallpaper motorcycle wallpaper porsche wallpaper rosie huntington wallpaper selena gomez wallpaper suzuki wallpaper </div><br />
<h2>New</h2>
<div class="module_wallpaper">
<a href="/nature/windmill-morning-sunrise-2">
<img src="/image.php?width=229&height=129&id=5997&nocache=1&dothumb=1" alt="windmill morning sunrise" width="150" height="85" />
</a>
</div><div class="module_wallpaper">
<a href="/nature/landscapes-nature-roads">
<img src="/image.php?width=229&height=129&id=5996&nocache=1&dothumb=1" alt="landscapes nature roads" width="150" height="85" />
</a>
</div><div class="module_wallpaper">
<a href="/girls-and-women/candice-swanepoel-model">
<img src="/image.php?width=229&height=129&id=5995&nocache=1&dothumb=1" alt="candice swanepoel model" width="150" height="85" />
</a>
</div><br /> </div>
<div class="right_sidebar">
<h2>Your account</h2>
<form method="post" action="/login.php?done=1">
<div class="mini_login_form">
<p>Username</p>
<input name="username" type="text" id="username" class="mini_login_textbox" /><br />
<p>Password</p>
<input name="password" type="password" id="password" class="mini_login_textbox" /><br />
<p><label><input type="checkbox" name="remember" id="remember" checked="checked" /> Keep me logged in</label></p>
<input type="submit" name="Submit" value="Login" class="mini_login_button" />
Forgotten your password?
</div>
</form>
Register new account
<br />
<h2>Recently viewed</h2>
<div class="no_recents">None...</div><br />
<h2>Stats</h2>
<ul class="stats_ul">
<li><strong>317</strong> users online</li>
<li><strong>5729</strong> wallpapers</li>
<li><strong>76823</strong> members</li>
<li><strong>0</strong> news posts</li>
<li><strong>31</strong> comments</li>
<li><strong>19</strong> categories</li>
</ul><br />
<h2>Links</h2>
<ul><li>Fashion Shows</li><li>wallpapers gallery</li><li>Girls Wallpapers</li><li>High Definition Wallpapers</li></ul><div class="more_links">More links</div>
</div>
<div class="center_column">
<div class="center_container">
<center>
<div class="gas">
<script async="async" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- wallpaper-text-728 -->
<ins class="adsbygoogle" style="display:inline-block;width:728px;height:15px" data-ad-client="ca-pub-3574787538747201" data-ad-slot="8438048800"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script> </div>
</center>
<div class="header_overflow"><h1>Homepage » All wallpapers</h1></div>
<div class="ad_banner_misc">
</div>
<div class="category_sort_options">
Sort options: <a class="sort_bold" href="/all">Newest</a> | <a class="sort_notbold" href="/all/oldest/1">Oldest</a> | <a class="sort_notbold" href="/all/rating/1">Top Rated</a> | <a class="sort_notbold" href="/all/downloads/1">Most Downloads</a> | <a class="sort_notbold" href="/all/nameasc/1">A-Z</a> | <a class="sort_notbold" href="/all/namedesc/1">Z-A</a> <select class="select" id="resolution_filter" name="resolution_filter" onchange="setResFilter();">
<option value="all">All resolutions</option><optgroup label="4:3"> <option value="1600x1200">1600x1200 </option><option value="1400x1050">1400x1050 </option><option value="1280x960">1280x960 </option><option value="1024x768">1024x768 </option><option value="800x600">800x600 </option></optgroup><optgroup label="16:9"> <option value="2560x1440">2560x1440 </option><option value="1920x1080">1920x1080 (1080p) </option><option value="1600x900">1600x900 </option><option value="1280x720">1280x720 (720p) </option></optgroup><optgroup label="16:10"> <option value="2880x1800">2880x1800 </option><option value="2560x1600">2560x1600 </option><option value="1920x1200">1920x1200 </option><option value="1680x1050">1680x1050 </option><option value="1440x900">1440x900 </option><option value="1280x800">1280x800 </option></optgroup><optgroup label="Apple"> <option value="2048x2048">Retina iPad </option><option value="1024x1024">iPad / iPad mini </option><option value="640x1136">iPhone 5 (& iPod) </option><option value="640x960">iPhone 4/4S/iPod </option><option value="320x480">Older iPhone & iPod </option></optgroup><optgroup label="Blackberry"> <option value="360x480">360x480 </option><option value="320x240">320x240 </option></optgroup><optgroup label="Google Android"> <option value="720x1280">720x1280 </option><option value="540x960">540x960 </option><option value="480x854">480x854 </option><option value="480x800">480x800 </option><option value="320x480">320x480 </option></optgroup><optgroup label="Netbook"> <option value="1366x768">1366x768 </option><option value="1024x600">1024x600 </option><option value="800x480">800x480 </option></optgroup><optgroup label="Other resolutions"> <option value="960x544">960x544 PS Vita </option><option value="480x272">480x272 PSP </option></optgroup><optgroup label="Windows Phone 7/8"> <option value="768x1280">768x1280 </option><option value="720x1280">720x1280 </option><option value="480x800">480x800 </option></optgroup></select> </div>
<script async="async" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- wallpaper-720 -->
<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-3574787538747201" data-ad-slot="1054382805"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script><br /><br />
<div class="category_container">
<div class="wallpaper_item">
<a href="/nature/windmill-morning-sunrise-2">
<img src="/image.php?width=229&height=129&id=5997&nocache=1&dothumb=1" alt="windmill morning sunrise" />
</a>
<div class="wallpaper_item_name">
<a href="/nature/windmill-morning-sunrise-2">
windmill morning sunrise </a>
</div>
</div><div class="wallpaper_item">
<a href="/nature/landscapes-nature-roads">
<img src="/image.php?width=229&height=129&id=5996&nocache=1&dothumb=1" alt="landscapes nature roads" />
</a>
<div class="wallpaper_item_name">
<a href="/nature/landscapes-nature-roads">
landscapes nature roads </a>
</div>
</div><div class="wallpaper_item">
<a href="/girls-and-women/candice-swanepoel-model">
<img src="/image.php?width=229&height=129&id=5995&nocache=1&dothumb=1" alt="candice swanepoel model" />
</a>
<div class="wallpaper_item_name">
<a href="/girls-and-women/candice-swanepoel-model">
candice swanepoel model </a>
</div>
</div><div class="wallpaper_item">
<a href="/cars/bugatti-veyron-grand-sport-2014">
<img src="/image.php?width=229&height=129&id=5994&nocache=1&dothumb=1" alt="bugatti veyron grand spor…" />
</a>
<div class="wallpaper_item_name">
<a href="/cars/bugatti-veyron-grand-sport-2014">
bugatti veyron grand spor… </a>
</div>
</div><div class="wallpaper_item">
<a href="/girls-and-women/beyonce-knowles-singer">
<img src="/image.php?width=229&height=129&id=5993&nocache=1&dothumb=1" alt="beyonce knowles singer" />
</a>
<div class="wallpaper_item_name">
<a href="/girls-and-women/beyonce-knowles-singer">
beyonce knowles singer </a>
</div>
</div><div class="wallpaper_item">
<a href="/girls-and-women/vintage-girl">
<img src="/image.php?width=229&height=129&id=5992&nocache=1&dothumb=1" alt="vintage girl" />
</a>
<div class="wallpaper_item_name">
<a href="/girls-and-women/vintage-girl">
vintage girl </a>
</div>
</div><div class="wallpaper_item">
<a href="/girls-and-women/jennifer-lopez-2014">
<img src="/image.php?width=229&height=129&id=5991&nocache=1&dothumb=1" alt="jennifer lopez 2014" />
</a>
<div class="wallpaper_item_name">
<a href="/girls-and-women/jennifer-lopez-2014">
jennifer lopez 2014 </a>
</div>
</div><div class="wallpaper_item">
<a href="/cars/bmw-m3">
<img src="/image.php?width=229&height=129&id=5990&nocache=1&dothumb=1" alt="bmw m3" />
</a>
<div class="wallpaper_item_name">
<a href="/cars/bmw-m3">
bmw m3 </a>
</div>
</div><div class="wallpaper_item">
<a href="/nature/tree-leaves-fog">
<img src="/image.php?width=229&height=129&id=5989&nocache=1&dothumb=1" alt="tree leaves fog" />
</a>
<div class="wallpaper_item_name">
<a href="/nature/tree-leaves-fog">
tree leaves fog </a>
</div>
</div><div class="wallpaper_item">
<a href="/girls-and-women/hand-lips-girl">
<img src="/image.php?width=229&height=129&id=5988&nocache=1&dothumb=1" alt="hand lips girl" />
</a>
<div class="wallpaper_item_name">
<a href="/girls-and-women/hand-lips-girl">
hand lips girl </a>
</div>
</div><div class="wallpaper_item">
<a href="/nature/spring-sheet">
<img src="/image.php?width=229&height=129&id=5987&nocache=1&dothumb=1" alt="spring sheet" />
</a>
<div class="wallpaper_item_name">
<a href="/nature/spring-sheet">
spring sheet </a>
</div>
</div><div class="wallpaper_item">
<a href="/cars/srt-viper-2014">
<img src="/image.php?width=229&height=129&id=5986&nocache=1&dothumb=1" alt="srt viper 2014" />
</a>
<div class="wallpaper_item_name">
<a href="/cars/srt-viper-2014">
srt viper 2014 </a>
</div>
</div><div class="wallpaper_item">
<a href="/animals/yellow-butterfly-red">
<img src="/image.php?width=229&height=129&id=5985&nocache=1&dothumb=1" alt="yellow butterfly red" />
</a>
<div class="wallpaper_item_name">
<a href="/animals/yellow-butterfly-red">
yellow butterfly red </a>
</div>
</div><div class="wallpaper_item">
<a href="/girls-and-women/art-girl-butterflies">
<img src="/image.php?width=229&height=129&id=5984&nocache=1&dothumb=1" alt="art girl butterflies" />
</a>
<div class="wallpaper_item_name">
<a href="/girls-and-women/art-girl-butterflies">
art girl butterflies </a>
</div>
</div><div class="wallpaper_item">
<a href="/cities/eiffel-tower-2">
<img src="/image.php?width=229&height=129&id=5983&nocache=1&dothumb=1" alt="eiffel tower" />
</a>
<div class="wallpaper_item_name">
<a href="/cities/eiffel-tower-2">
eiffel tower </a>
</div>
</div><div class="wallpaper_item">
<a href="/girls-and-women/hair-face-wind">
<img src="/image.php?width=229&height=129&id=5982&nocache=1&dothumb=1" alt="hair face wind" />
</a>
<div class="wallpaper_item_name">
<a href="/girls-and-women/hair-face-wind">
hair face wind </a>
</div>
</div><div class="wallpaper_item">
<a href="/cars/bmw-f30">
<img src="/image.php?width=229&height=129&id=5981&nocache=1&dothumb=1" alt="bmw f30" />
</a>
<div class="wallpaper_item_name">
<a href="/cars/bmw-f30">
bmw f30 </a>
</div>
</div><div class="wallpaper_item">
<a href="/nature/purple-ears-field">
<img src="/image.php?width=229&height=129&id=5980&nocache=1&dothumb=1" alt="purple ears field" />
</a>
<div class="wallpaper_item_name">
<a href="/nature/purple-ears-field">
purple ears field </a>
</div>
</div><div class="wallpaper_item">
<a href="/other/bike">
<img src="/image.php?width=229&height=129&id=5979&nocache=1&dothumb=1" alt="bike" />
</a>
<div class="wallpaper_item_name">
<a href="/other/bike">
bike </a>
</div>
</div><div class="wallpaper_item">
<a href="/cars/porsche-carrera">
<img src="/image.php?width=229&height=129&id=5978&nocache=1&dothumb=1" alt="porsche carrera" />
</a>
<div class="wallpaper_item_name">
<a href="/cars/porsche-carrera">
porsche carrera </a>
</div>
</div><div class="wallpaper_item">
<a href="/nature/mountain-nature-landscape">
<img src="/image.php?width=229&height=129&id=5977&nocache=1&dothumb=1" alt="mountain nature landscape" />
</a>
<div class="wallpaper_item_name">
<a href="/nature/mountain-nature-landscape">
mountain nature landscape </a>
</div>
</div><div class="wallpaper_item">
<a href="/cars/suzuki-gsx-r600-motorcycle">
<img src="/image.php?width=229&height=129&id=5976&nocache=1&dothumb=1" alt="suzuki gsx r600 motorcycl…" />
</a>
<div class="wallpaper_item_name">
<a href="/cars/suzuki-gsx-r600-motorcycle">
suzuki gsx r600 motorcycl… </a>
</div>
</div><div class="wallpaper_item">
<a href="/nature/road-mountain">
<img src="/image.php?width=229&height=129&id=5975&nocache=1&dothumb=1" alt="road mountain" />
</a>
<div class="wallpaper_item_name">
<a href="/nature/road-mountain">
road mountain </a>
</div>
</div><div class="wallpaper_item">
<a href="/girls-and-women/car-2">
<img src="/image.php?width=229&height=129&id=5973&nocache=1&dothumb=1" alt="car" />
</a>
<div class="wallpaper_item_name">
<a href="/girls-and-women/car-2">
car </a>
</div>
</div><div class="wallpaper_item">
<a href="/girls-and-women/brunette-dress">
<img src="/image.php?width=229&height=129&id=5972&nocache=1&dothumb=1" alt="brunette dress" />
</a>
<div class="wallpaper_item_name">
<a href="/girls-and-women/brunette-dress">
brunette dress </a>
</div>
</div><div class="wallpaper_item">
<a href="/girls-and-women/model-dress">
<img src="/image.php?width=229&height=129&id=5971&nocache=1&dothumb=1" alt="model dress" />
</a>
<div class="wallpaper_item_name">
<a href="/girls-and-women/model-dress">
model dress </a>
</div>
</div><div class="wallpaper_item">
<a href="/animals/africa-elephants">
<img src="/image.php?width=229&height=129&id=5970&nocache=1&dothumb=1" alt="africa elephants" />
</a>
<div class="wallpaper_item_name">
<a href="/animals/africa-elephants">
africa elephants </a>
</div>
</div><div class="wallpaper_item">
<a href="/nature/green-trees-forest-akes">
<img src="/image.php?width=229&height=129&id=5969&nocache=1&dothumb=1" alt="Green trees forest akes" />
</a>
<div class="wallpaper_item_name">
<a href="/nature/green-trees-forest-akes">
Green trees forest akes </a>
</div>
</div><div class="wallpaper_item">
<a href="/animals/wild-cheetah-alone">
<img src="/image.php?width=229&height=129&id=5968&nocache=1&dothumb=1" alt="wild cheetah alone" />
</a>
<div class="wallpaper_item_name">
<a href="/animals/wild-cheetah-alone">
wild cheetah alone </a>
</div>
</div><div class="wallpaper_item">
<a href="/nature/lake-3">
<img src="/image.php?width=229&height=129&id=5967&nocache=1&dothumb=1" alt="lake" />
</a>
<div class="wallpaper_item_name">
<a href="/nature/lake-3">
lake </a>
</div>
</div> </div>
<br />
<script async="async" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- wallpaper-720 -->
<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-3574787538747201" data-ad-slot="1054382805"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script><br />
<div class="category_pages">
<div class="pagination_wrap">
<b><font color="#2B6FE4">1</font></b> 2 3 4 5 6 7 8 ... 188 189 Next » </div>
</div>
<br />
<div style="padding: 10px">
<center>
</center>
</div>
</div>
</div>
</div>
<div class="ad_banner_footer"><br style="clear:both" />
<script async="async" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- wallpaper-text-728 -->
<ins class="adsbygoogle" style="display:inline-block;width:728px;height:15px" data-ad-client="ca-pub-3574787538747201" data-ad-slot="8438048800"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
<div class="footer">
Powered by Wallpaper Site Script - Copyright AV Scripts 2014 </div>
</body>
</html>

Categories