Azlina T
Azlina T

Reputation: 176

Getting data from website without URL

I am working on a project which needs to extract data from website by parsing its html and getting the content out of title tag and meta description.I am able parsing that data from normal website, but in this matter the website is only can be access using IP address as the URL.Is it possible to be extract and what solution can be use?

Upvotes: 0

Views: 440

Answers (1)

clemens321
clemens321

Reputation: 2098

A URL doesn't need a domain name, something like http://127.0.0.1/test.php is a valid url and all scraper should work with this correctly.

This requires the website to respond on requests to the ip-based url. Those on private servers or very big sites might do, sites from ordinary shared hosters usually don't as they host multiple sites with the same ip.

Upvotes: 1

Related Questions