from selenium import webdriver
# 请求url url
= "https://auctions.freemansauction.com/auction-lot-detail/A%2Dplatinum%2Dand%2Ddiamond%2Dlorgnette%2C/1593+++++++2+/++989817" mydriver = webdriver.PhantomJS()
try:
mydriver.get(url)
result = mydriver.page_source.encode('utf8')
except:
result = mydriver.get(url)
if 'language="javascript">setTimeout' in result:
result = mydriver.get(url)
result_repalce = replace(result)

item_desc = re.findall('<div class="lot_detail_description">(.*?)</div><hr>',result_repalce)[0]
estimate_price = re.findall('<br> <b>Estimate(.*?)</b><br><br>',result_repalce)[0]

print item_desc
print estimate_price 

 

相关文章:

  • 2022-01-18
  • 2021-11-29
  • 2021-04-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-08-14
  • 2021-12-26
猜你喜欢
  • 2022-12-23
  • 2022-01-22
  • 2021-04-22
  • 2021-05-31
  • 2022-12-23
  • 2021-10-26
  • 2021-08-10
相关资源
相似解决方案