我正在使用Python从RightMove刮擦一些数据。目前,我必须手动查找RightMove Post代码ID以生成URL。有没有一种方法通过API来执行此操作?
例如,对于邮政编码SY3 9EB,URL为:
所以我需要一种将邮政编码表映射到ID的方法,例如,
Postcode ID
SY3 9EB 5E4203018
请提前感谢!
I am using Python to scrape some data from Rightmove. At the moment, I'm having to look up the rightmove postcode ID manually to generate the URL. Is there a way of doing this via the API?
For example, for postcode SY3 9EB, the URL is:
https://www.rightmove.co.uk/property-for-sale/find.html?locationIdentifier=POSTCODE%5E4203018
So I need a way of mapping a table of postcodes to ID, e.g.
Postcode ID
SY3 9EB 5E4203018
Thanks in advance!
发布评论
评论(1)
我不知道API,但是您可以使用不同的URL(带有邮政编码)获取位置ID。例如:
打印:
I'm not aware of Api, but you can use different URL (with postcode) to obtain the Location Id. For example:
Prints: