import.io

How to use substring() with Import.io?

时光总嘲笑我的痴心妄想 提交于 2019-12-05 11:30:55
I'm having some issues with XPath and import.io and I hope you'll be able to help me. :) The html code: <a href="page.php?var=12345"> For the moment, I manage to extract the content of the href ( page.php?var=12345 ) with this: ./td[3]/a[1]/@href Though, I would like to just collect: 12345 substring might be the solution but it does not seem to work on import.io as I use it... substring(./td[3]/a[1]/@href,13) Any ideas of what the problem is? Thank's a lot in advance! Try using this for the xpath: (Have the field selected as Text) .//*[@class='oeil']/a/@href Then use this for your regex: ([^=]

import.io JSON data

血红的双手。 提交于 2019-12-04 13:07:54
I need to output some values from a JSON generated by import.io This is the JSON: object(stdClass)#1 (7) { ["offset"]=> int(0) ["results"]=> array(5) { [0]=> object(stdClass)#2 (3) { ["vanzare"]=> string(6) "4.4400" ["moneda"]=> string(3) "EUR" ["cumparare"]=> string(6) "4.3550" } [1]=> object(stdClass)#3 (3) { ["vanzare"]=> string(6) "4.1882" ["moneda"]=> string(3) "USD" ["cumparare"]=> string(6) "4.0582" } [2]=> object(stdClass)#4 (3) { ["vanzare"]=> string(6) "6.1327" ["moneda"]=> string(3) "GBP" ["cumparare"]=> string(6) "5.9827" } [3]=> object(stdClass)#5 (3) { ["vanzare"]=> string(6) "4