0

I'm rather new to JavaScript (but have experience) and was wondering if it's possible to get information from the content on a website (blog), such as a post title or something of that sort, save that into an array, then have the JavaScript re-analyze that site in the future, save that data into the array as well, then compare both elements in the array?

I just want to know if the concept is executable? If it won't work, why not? Data storage? Input and output restriction?

Is there another language that could do that?

Thank you for your time!

4

2 回答 2

1

You can do this easily in JavaScript, but you can't do it in JavaScript in a web browser. Instead, you can use node.js which is designed for this very kind of thing. Node.js runs JavaScript as a standalone app on a server or on your local machine, so it isn't subject to the same-domain restrictions as JavaScript in a web browser.

Of course, once you're outside the web browser, you're no longer limited to JavaScript. You can use Python or Ruby or any number of languages. But if you want to use JavaScript for this task, node.js is a fine way to do it.

于 2013-06-04T03:17:48.340 回答
0

Yes, this can be done in JavaScript.

Yes, most other programming languages can also do it.

于 2013-06-04T01:56:16.077 回答