1
嗨〜我只想從頁面獲取一些數據。 我想以編程方式導航到頁面。 但是當我移動到下一頁時,這個頁面的URL不會改變。 該網站爲http://goodauction.land.naver.com/auction/ca_list.php移動到下一頁時url不會改變
我不知道爲什麼 我該如何解決?
嗨〜我只想從頁面獲取一些數據。 我想以編程方式導航到頁面。 但是當我移動到下一頁時,這個頁面的URL不會改變。 該網站爲http://goodauction.land.naver.com/auction/ca_list.php移動到下一頁時url不會改變
我不知道爲什麼 我該如何解決?
你可以模仿post
使用請求庫。
import requests, bs4
payload = {
'lawsup':0,
'lesson':0,
'next_biddate1':'',
'next_biddate2':'',
'state':91,
'b_count1':0,
'b_count2':0,
'b_area1':'',
'b_area2':'',
'special':0,
'e_area1':'',
'e_area2':'',
'si':11,
'gu':0,
'dong':0,
'apt_no':0,
'order':'',
'start':60,
'total_record_val':850,
'detail_search':'',
'detail_class':'',
'recieveCode':'',}
headers = {'User-Agent':'Mozilla/5.0',
'Referer':'http://goodauction.land.naver.com/auction/ca_list.php'}
r = requests.post('http://goodauction.land.naver.com/auction/ax_list.php', data=payload, headers=headers)
print(r.text)
雖然有很多的Fileds,但頁面在start
領域: 你可以郵寄:
payload = {
'state':91,
'start':30, # each page contains 30 record, next page +30 example: 0, 30, 60
'total_record_val':850,}
真的謝謝~~我找到怎樣的方式放棄! 你是偉大的人?還是女孩? ~~ –