-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Ideas #12
Comments
Oh and storing the current URL in the route/hash, so that we can share the url and have the url pre-filled (and started directly when filled) Probably best with vue-router, but not such an expert in Vue (yet). Edit; see #16 |
Hi @barryvdh, thanks for the ideas and PRs! I'm not very familiar with PSR-7 TBH, so will need some time to wrap my head around it, but SEO and PageSpeed actually have been planned. P.S. I'm a huge fan of you and your works, so this is like a "Senpai noticed me" moment ;) |
PSR-7 is what you are already using, that's the response object from Guzzle :) What I'm running in to is that you define the constructor and check method in the interface, so you can't easily add extra dependencies to checks. Also, again with PSR-7, you also get the Response body, so you could think about just passing that. There is also a UriInterface you could use. (And even psr-7 request instead of the URI, as that also contains it, but not needed perhaps) public function check(Crawler $crawler, ResponseInterface $response, UriInterface $uri); The rule, with flexible constructor, can be creating using the app container; Currently, the UrlFetcher is a singleton, which keeps the Response as property. But you can't use the UrlFetcher for a different response in a Rule, because then you can't access the old response. One problem there currently is, is that you manually gzip decode the response. But can't you check the content-encoding header? Guzzle should add the original header as /**
* Fetch an URL.
*
* @param UriInterface|string $url
*
* @throws \RuntimeException
*
* @return ResponseInterface
*/
public function fetch($url) : ResponseInterface { ..} |
I can submit a PR for it if you want, but it will break BC (and you already tagged v1..). Probably not much people using custom rules yet, but still.. |
Breaking is perfectly fine, we can always tag a v2. Move fast, break things :) |
Oh and a SSL check (yes/no https) and valid certificate, + warning if < 30 days expiry. |
Interestingly I thought about this, too, the other day. The lib looks nice. PHP7 isn't an issue I think – we can force 7 in the next version (we have the breaking changes on the way anyway). |
also worth to check https://github.com/eyecatchup/SEOstats/ |
Nice tool :)
I was building something similar in house, but didn't get around to building a nice UI around it.
Some suggestions/ideas that I was thinking of:
Some ideas for checks (besides my PRs)
The text was updated successfully, but these errors were encountered: