Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't detect inactive domains (locally) using (wp wp2static detect) , using command-line #865

Open
shyambaseapp opened this issue Apr 6, 2022 · 3 comments
Labels

Comments

@shyambaseapp
Copy link

shyambaseapp commented Apr 6, 2022

I want to crawl the WordPress site which is installed on my computer (locally).
But the detected path goes for online crawling( wp wp2static crawl).

[[email protected]]: [2022-04-06T07:27:15+00:00] Starting to detect WordPress site URLs.
[[email protected]]: PHP Fatal error: Uncaught WP2StaticGuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: appledssdg.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://appledssdg.com/robots.txt in /var/www/appledssdg.com/htdocs/wp-content/plugins/wp2static/vendor/leonstafford/wp2staticguzzle/src/Handler/CurlFactory.php:210

@shyambaseapp
Copy link
Author

If the domain is active then it works and if I add the domains in our /etc/hosts file then it also works(which is not active).

@shyambaseapp
Copy link
Author

I think wp2static crawl the path online like:

[2022-04-08T05:31:22+00:00] Starting crawling
[2022-04-08T05:31:22+00:00] Starting to crawl detected URLs.
[2022-04-08T05:31:22+00:00] Using CrawlCache.
Array
(
[0] => Array
(
[url] => http://abc123.com/
[path] => /
)
[1] => Array
(
[url] => http://abc123.com/favicon.ico
[path] => /favicon.ico
)
[2] => Array
(
[url] => http://abc123.com/page/1/
[path] => /page/1/
)
[3] => Array
(
[url] => http://abc123.com/robots.txt
[path] => /robots.txt
)
[4] => Array
(
[url] => http://abc123.com/sitemap.xml
[path] => /sitemap.xml
)
[5] => Array
(
[url] => http://abc123.com/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Italic.otf.woff2
[path] => /wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Italic.otf.woff2
)
[6] => Array
(
[url] => http://abc123.com/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Italic.ttf.woff2
[path] => /wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Italic.ttf.woff2
)
[7] => Array
(
[url] => http://abc123.com/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Roman.otf.woff2
[path] => /wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Roman.otf.woff2
)
[8] => Array
(
[url] => http://abc123.com/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Roman.ttf.woff2
[path] => /wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Roman.ttf.woff2
)
[9] => Array
(
[url] => http://abc123.com/wp-content/themes/twentytwentytwo/assets/images/bird-on-black.jpg
[path] => /wp-content/themes/twentytwentytwo/assets/images/bird-on-black.jpg
)

@shyambaseapp
Copy link
Author

I want to crawl the site locally using given URLs, not forgo online.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants