Jump to content
UBot Underground

Getting JSON error while scraping amazon


Recommended Posts

add list to list(%AmazonUrls,$list from file("C:\\Users\\Administrator\\Desktop\\auto.txt"),"Don\'t Delete","Global")
wait(60)
loop($list total(%AmazonUrls)) {
    navigate($next list item(%AmazonUrls),"Wait")
    wait for browser event("Everything Loaded","")
    set(#url,$url,"Global")
    set(#ta,$scrape attribute(<id="title">,"innertext"),"Global")
    set(#description,$scrape attribute(<id="feature-bullets">,"innertext"),"Global")
    set(#qa,$scrape attribute(<(class="a-fixed-left-grid-col a-col-right" AND style="padding-left:1%;float:left;")>,"innertext"),"Global")
    set(#qa,$replace(#qa,"See more answers",$nothing),"Global")
    set(#reviews,$scrape attribute(<id=w"customer_review-*">,"innertext"),"Global")
}   

I get JSON boolean error type and cant convert to a string.

 

Can somebody tell me whats the issue here, all was working fine before and I didint change the code 

Link to post
Share on other sites

Just tested your code snippet. It seems to work fine without any changes. At least all the variables have content, and no errors.

I tested it using version 5.9.55. Just not sure what the variable #qa is meant to do, stays empty.

test-amazon-script-2022-03-08-2.png

 

Link to post
Share on other sites
  • 2 weeks later...
Quote

not sure what the variable #qa is meant to do

Product question and answers info I think so may not be on all the pages

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...