I’d like to fetch a html source from [Hello World - GitHub Docs](The Official Docs of Github) by using wget command.
I simply executed this way:
$ wget https://docs.github.com/en/get-started/quickstart/hello-world
But this error occurred:
HTTP request sent, awaiting response... 403 Forbidden
And I couldn’t get the html source.
Is it forbidden to execute “wget” in order to fetch html sources from the Official Docs of Github?
I know the contents of Github’s Official Docs are stored as markdown file in Github repository, so it’s possible to get what I want (though it’s not html file).
Why I’d like to use “wget” should be just for my self curiosity.
I found out this article about how to fix that by adding an “–user-aget” option to “wget”.
And Tried this command( The three dots “…” means the omitting):
$ wget --user-agent="Mozilla/5.0 ..." https://docs.github.com/en/get-started/quickstart/hello-world
But it was the same result.
In this source, http status error of “403” means:
This status is similar to 401, but for the 403 Forbidden status code re-authenticating makes no difference. The access is permanently forbidden and tied to the application logic, such as insufficient rights to a resource.
So I think “wget” may not work.
This may be the general topic for “wget” so that it’s not appropriate for asking here. If so, I’m going to delete this topic and ask in other community.
Thank you for your helping.