简体   繁体   English

Google表格importxml登录访问

[英]Google Sheet importxml login access

I've used importxml to get public info from a website. 我使用importxml从网站获取公共信息。 But sometimes info changed when we access though different country. 但是有时,当我们访问其他国家/地区时,信息会更改。 For example http://www.ebay.com/itm/221998403138?_trksid=p2057872.m2749.l2649&var=520870142881 例如http://www.ebay.com/itm/221998403138?_trksid=p2057872.m2749.l2649&var=520870142881

this item is not available in USA but when we'll access from different country where seller shipped or changed the country of shipping, we can find the shipping cost. 此项在美国不可用,但是当我们从卖方装运的其他国家/地区或更改装运国家/地区访问时,我们可以找到运费。 If I use importxml from Google Sheet, that means the access country will be USA. 如果我使用Google Sheet中的importxml,则表示访问国家将是美国。 How far I understand i can't change the IP of Google Sheet. 据我了解我无法更改Google表格的IP。 So I would like to know if is there any way to sent login detail though URL. 所以我想知道是否可以通过URL发送登录详细信息。 That means I want to specific Google Sheet to access URL though my login details(username and password). 这意味着我希望特定的Google表格通过我的登录详细信息(用户名和密码)访问URL。

So that shipping cost will appear under xpath. 这样运输成本将显示在xpath下。

//*[@id="fshippingCost"]/span[1] -- Non-US country where seller ship // * [@@ =“ =” fshippingCost“] / span [1]-卖家运送的非美国国家/地区

//*[@id="shSummary"]/span[1] - USA, shipping is not available // * [@@ id =“ shSummary”] / span [1]-美国,无法送货

Please see the image for clarification. 请参阅图片进行说明。

http://prntscr.com/ad6fqi http://prntscr.com/ad6fqi

IMPORTXML is a Google Sheets built-in function that use Google servers to be ran anonymously. IMPORTXML是Google表格的内置功能,它使用Google服务器进行匿名运行。 If you need to use to sign in in order to get access to restricted access information you should use another thing like Google Apps Script to create a web app. 如果您需要使用登录名来访问受限访问信息,则应该使用Google Apps Script之类的其他工具来创建网络应用程序。

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

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