Double spaces in csv file changed to a single
In a scrape I use (with html tidy off) there are URLs that point to images. Some of these have single and some double spaces in the paths. When I copy and paste out of the 'test pattern' button, the data has (correctly) got 2 spaces in. When the data is shown on the scrape log is is shown with just one?
from datarecord in scrape log:
/components/com_vehiclemanager/photos/4739FD7F-98F8-FA8B-9E4C-BE46C0A9D71D_2008 08 MAN 26 440 6X4 Chassis cab (2)_450_600.JPG"
(note only one space after the word cab)
Pasted from the test pattern for that token:
/components/com_vehiclemanager/photos/4739FD7F-98F8-FA8B-9E4C-BE46C0A9D71D_2008 08 MAN 26 440 6X4 Chassis cab (2)_450_600.JPG
(note the double space in that position)
This creates a problem as I can't download the image.
I am using the professional version, version 6
Thanks in advance for your help
Jason
I'm not sure what you're
I'm not sure what you're doing with this.
If you scrape the URL, you can use script to URL encode the string, and it will convert a space to %20, and therefore retain the spaces, but if you put a pre-encoded URL into the scrapeable file it will encode again and mess it up.
Just trying to get the urls of the images on the page
I am not too advanced on this, I'm afraid.
There are just references to the image urls on the page, I must be missing something, as I just put the place where the URLs appear in a token to save to a csv file so I can download them later. It is this process that removes the double space.
I'm not sire what you mean by " use script to URL encode the string" - could you please let me have an example?
Thanks
Jason