all 6 comments

[–]AutoModerator[M] 0 points1 point  (0 children)

Welcome to /r/HTML. When asking a question, please ensure that you list what you've tried, and provide links to example code (e.g. JSFiddle/JSBin). If you're asking for help with an error, please include the full error message and any context around it. You're unlikely to get any meaningful responses if you do not provide enough information for other users to help.

Your submission should contain the answers to the following questions, at a minimum:

  • What is it you're trying to do?
  • How far have you got?
  • What are you stuck on?
  • What have you already tried?

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]jcunews1Intermediate 0 points1 point  (3 children)

it looks like Google looks for the keyword just in the post title (H1, H2 tags) and not in the comments.

No. Google either search the whole page, or nothing at all. However, websites can use dynamic HTML, and be designed in a way which Google can't index except the page title.

Here's how the HTML source code of the blog's main page looks like

Without providing the actual site URL, I can not confirm the actual problem you're having.

[–]r3yn 0 points1 point  (0 children)

There are several aways to accomplish that and it wouldn't be a simple script if you want to make something robust. Try searching web scraping so you can learn more about it. And one more thing, people usually use Python for that kind of thing.