简体   繁体   English

使用 VBA 拉取商店位置

[英]Use VBA to pull store locations

I am trying to pull all the store locations from several different websites, for example Sephora http://www.sephora.com/store-locations-events and Freshpet http://freshpet.com/storelocator/ .我试图从几个不同的网站中提取所有商店位置,例如丝芙兰http://www.sephora.com/store-locations-events和 Freshpet http://freshpet.com/storelocator/

Every site constrains the radius for the search, so to find all locations, the only thing I have come up with is cycling through every zip code and then filtering out duplicates.每个站点都限制了搜索的半径,因此要查找所有位置,我唯一想到的是循环遍历每个邮政编码,然后过滤掉重复项。 Is there a way to use VBA to manipulate the search radius using VBA to just search the entire United States, instead of only up to 100 miles?有没有办法使用 VBA 来操纵搜索半径,使用 VBA 来搜索整个美国,而不是最多 100 英里? That way, I could just do one search for each of these sites.这样,我就可以对这些网站中的每一个进行一次搜索。

Thanks!谢谢!

I don't think you can do it on those javascript sites.我不认为你可以在那些 javascript 网站上做到这一点。 VBA works great with HTML, but not so great with javascript and flash. VBA 适用于 HTML,但不适用于 javascript 和 flash。 Also, the code isn't even exposed, so the search results must be generated dynamically from the server.此外,代码甚至没有公开,因此必须从服务器动态生成搜索结果。 I just did a search on that freshpet site and got the results then did a right-click and viewed the source code and nothing that I searched for was in the code.我只是在那个freshpet网站上进行了搜索并获得了结果,然后右键单击并查看了源代码,代码中没有我搜索的任何内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM