I'm try to do some data analysis on smartphone prices but am having trouble finding a dataset. The data found here looks like exactly what I need, but it's in this interactive chart format. I was wondering if there was a way to extract the data put into this chart as a .csv file so that I can use it in SAS and R for data analysis. Any help is appreciated!


Yes, you can do it. As shown on the Figure below, the webpage generates special links for each phone, so when you filter the smartphones, you need to extract the data for all results smartphones. This can be do it with scrapping techniques maybe with a python based code.

enter image description here

| improve this answer | |
  • 1
    not even that, you can just view source and copy/pasta! its all embedded in a script, but in html and all viewable. i'd copy it out, paste into new html document and open it up in the browser. – albert Oct 24 at 21:43
  • 1
    its also exposed in a url as javascript/json. i appended '1000' at the end of this url, because its asking for a number for 'limit=', so results may vary, you may want to tinker with that variable: productchart.com/smartphones/… – albert Oct 24 at 21:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.