Background
I'd like to create an online tool on my website where:
- the user enters a URL (or user enters a block of copied/pasted text) and clicks the submit button;
- the form pulls the text from the webpage of the entered URL;
- scans the text for specific words (on a list which I'll create);
- outputs the number of hits for those specific words and the number of times those words appear on the web page;
- and finally gives a report and recommendations at the bottom of the page.
Similar to...
It's pretty similar to those keyword density checker or word count websites, but when I inspect the page source of those pages, I'm not quite able to reverse engineer them to figure it out. The JS I find is not complete which makes me wonder if some of the "brains" behind them is occurring in a separate file (PHP file?).
Where to start?
I'm experienced with HTML and CSS after 13 years of tinkering with websites, but have a general (hobbyist/not advanced) understanding of JS and PHP.
I would think I'd need to first create an HTML form, the divs, and buttons, then create the JS that would validate the URL, pull the information from the URL, analyze it, and then provide the recommendations. Would I need to use AJAX, PHP etc?
At this stage, I'm only requesting information for where to start. I've searched the StackOverflow forums and different Google searches but am not quite finding what I'm searching for so would welcome some expert input for direction. If anyone is aware of any other examples or tutorials on this topic, I'd welcome any helpful links.
Again, I want to do the heavy lifting so I can learn from the process.
Thanks in advance.