Post Content Tab
wpBots Support – The best crawlers for WordPress › Forums › SCRAPER (after-sales) › General Issues › Post Content Tab
- This topic has 12 replies, 2 voices, and was last updated 5 years, 5 months ago by
Suman M..
-
AuthorPosts
-
May 21, 2020 at 5:56 pm #2127
Bhav SinghParticipantHi the post content is not displaying image gallery images properly on the product page so scraping them is not possible even through meta tags
check screen shot https://tinyurl.com/yahhtex9
May 22, 2020 at 3:49 am #2129
Suman M.KeymasterHi, thanks for contacting us. It’s because the gallery might have been loaded via Ajax. But we can manually fetch those images and we’ll help you with it. Can you please let us know your site’s wp-admin login details so that we can look into it. Also let us know the task name we shall look into.
May 22, 2020 at 5:13 pm #2141
Bhav SinghParticipantThis reply has been marked as private.May 23, 2020 at 7:39 am #2144
Suman M.KeymasterHi, it’s now scraping gallery images too – //li[contains(@class,”prd-image”)]//picture
Please check and let us know.May 23, 2020 at 9:58 am #2147
Bhav SinghParticipantHi yes its working ok but i want the images URL to be saved in to paticular fields how do i do this the field you choose is gallery but i want it to be saved in to the following fileds, fifu_image_url fifu_image_url_0
fifu_image_url_1 fifu_image_url_2is this possible
thanks
May 25, 2020 at 4:40 am #2154
Suman M.KeymasterYes, I have added fifu_image_url_1 and fifu_image_url_2 – https://www.screencast.com/t/lgXBvumeCRyw
You can add others accordingly.May 26, 2020 at 11:31 pm #2169
Bhav SinghParticipanthi thanks i have got it now, just one more thing can you tell me how did you find the path select please
thanks
May 27, 2020 at 12:17 pm #2171
Bhav SinghParticipantHi i cant find a field which exsists in the database, it already has data in the field so why is it not visible in the list?. if this is not possible can i use field meta key to attache the field to the task.
thanks
May 28, 2020 at 4:50 am #2174
Suman M.Keymasterjust one more thing can you tell me how did you find the path select please
>> You either need to know the syntax of XPath or you can do this – https://support.wpbots.net/documentation/getting-a-value-from-hidden-element/If the field name already exists and you have already added data to it then it should be visible in scraper’s fields list. Can you please let me know which field it is and where we can see it?
May 29, 2020 at 6:26 pm #2194
Bhav SinghParticipantHi i have tried to extract the xpath like yours but the xpath im getting is diffrent to yours for example here is yours //li[contains(@class,”prd-image”)]//picture and heres is mine //*[@id=”carousel”]/ul/li[1]/a/picture/img why is this? im using chrome browser.
thanks
June 1, 2020 at 4:28 am #2196
Suman M.KeymasterI have written the XPath manually. You seem to have generated XPath from browser’s console. Both should be working. Isn’t yours working? If not, for which source url and which image?
June 1, 2020 at 9:16 pm #2198
Bhav SinghParticipantHi yes, mine doesn’t work and I don’t know how to do it manually. will I have to get the ajax pro subscription to make it work? or is there any other solution.
thanks
June 2, 2020 at 8:46 am #2203
Suman M.KeymasterHi, you don’t need Scraper Pro for getting the XPath. In some cases, because of the way HTML code is written, you might need to manually find the correct XPath. In such case we’ll help you find the correct XPath. Let us know. Thanks!
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.