How do I extract data from a website using javascript.
问题 Hi complete newbie here so bear with me. Seems like a simple job but I can't seem to find an easy way to do this. So I need to extract a particular text from a webpage "www.example.com/index.php". I know that the text would be available in p tag with certain id. How do I extract this data out using javascript? What I'm trying currently is that I have my javascript file (trying.js) on my computer with the following code: $(document).ready(function () { $.get("www.example.com/index.php",