title: Why am I receiving "Could not fetch URL" error on Google Sheets Import XML?
body: <p>New here, and still trying to wrap my mind around this importXML tool in Google Sheets. Seem to be able to get it to work on certain websites, but when data is deeply embedded in code, I struggle.</p>
  <p><strong>Goal:</strong> To pull in weight of items listed on bricklink.com to a Google Sheet.</p>
  <p>Link to my Google Sheet: <a href="https://docs.google.com/spreadsheets/d/1_vhCkEJXofxMj1Cg117RgPJSFTqPF0ijo_f60mDR6MU/edit?usp=sharing" rel="nofollow noreferrer">https://docs.google.com/spreadsheets/d/1_vhCkEJXofxMj1Cg117RgPJSFTqPF0ijo_f60mDR6MU/edit?usp=sharing</a></p>
  <p>When I copy the xpath from the source code on the site, I'm given this value: //*[@id=&quot;item-weight-info&quot;].</p>
  <p>The existing fomula I have is: =IMPORTXML(D2,&quot;//*[@id='item-weight-info']&quot;)
  D2 Contains the web address where it concatenates the website + the item number.</p>
  <p>Error I'm receiving is: &quot;Could not fetch url: <a href="https://www.bricklink.com/v2/catalog/catalogitem.page?S=21318%22" rel="nofollow noreferrer">https://www.bricklink.com/v2/catalog/catalogitem.page?S=21318&quot;</a></p>
  <p>I did come across a potential JSON solution, set up a JSON function in the sheet, but have never written a script before. Tried to copy a script, and tweak as needed, but still no luck.</p>
  <p>Is there an easier way to do this that I'm overlooking?</p>
  <p>Any guidance or suggestions would be greatly appreciated. Thank you for your time!</p>