我使用iMacros已经有很长一段时间了,我有一个代码,可以从中提取文本并使用它创建我需要的特定url
是这样的:
#I can extract the XPath text with this.
TAG XPATH="//*[@id="meio"]/div[2]/section/article[5]/h2/span/a" EXTRACT=TXT
#With this, I'm able to use that extracted text to go to another url. I think it's obvious to say, but I can place my word wherever I want with "{{!EXTRACT}}".
URL GOTO=https://www.spiritfanfiction.com/perfil/{{!EXTRACT}}
我可以在Python中使用这样的东西吗
假设这是我当前的网址:
https://www.spiritfanfiction.com/perfil/depreciate
我需要提取“折旧”并使用它转到以下url:
https://www.spiritfanfiction.com/mensagens/post?usuario=depreciate
Ps:在这种情况下,我不能直接从XPath中提取。它必须在当前url中
谢谢你
下面是代码,将给你的愿望网址
相关问题 更多 >
编程相关推荐