{"action":"opened","number":49,"pull_request":{"url":"https://api.github.com/repos/spatie/crawler/pulls/49","id":99727273,"html_url":"https://github.com/spatie/crawler/pull/49","diff_url":"https://github.com/spatie/crawler/pull/49.diff","patch_url":"https://github.com/spatie/crawler/pull/49.patch","issue_url":"https://api.github.com/repos/spatie/crawler/issues/49","number":49,"state":"open","locked":false,"title":"Add logic to track DOM/HTML elements...","user":{"login":"mallardduck","id":619938,"avatar_url":"https://avatars.githubusercontent.com/u/619938?v=3","gravatar_id":"","url":"https://api.github.com/users/mallardduck","html_url":"https://github.com/mallardduck","followers_url":"https://api.github.com/users/mallardduck/followers","following_url":"https://api.github.com/users/mallardduck/following{/other_user}","gists_url":"https://api.github.com/users/mallardduck/gists{/gist_id}","starred_url":"https://api.github.com/users/mallardduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mallardduck/subscriptions","organizations_url":"https://api.github.com/users/mallardduck/orgs","repos_url":"https://api.github.com/users/mallardduck/repos","events_url":"https://api.github.com/users/mallardduck/events{/privacy}","received_events_url":"https://api.github.com/users/mallardduck/received_events","type":"User","site_admin":false},"body":"...this is super useful for tracking link redirects that could be affecting SEO.\r\n\r\nIn particular this can be useful when it comes to generating a report, or even a \"patch\" file, of the redirecting links.\r\n\r\nFor example you crawl a website and are looking for onsite redirects, the same (or very similar) links are on multiple pages. Once the report is done it's much easier to address the various links and pages if you have context about what page the links on and where it is. By tracking the actual link tag this is much easier; additionally a 'corrected' link can also be presented in the report.\r\n\r\nExample of the output:\r\n\r\n```\r\nSEO Warning: Redirect found on page: https://grandmascookieblog.com/\r\nThis HTML link:\r\n\r\n<a href=\"/cloud.php\">Onsite test</a>\r\n\r\nredirects to: https://www.liquidweb.com/cloudsites/\r\nThe final page/URL is: https://www.liquidweb.com/cloudsites/. The corrected link is:\r\n\r\n<a href=\"https://www.liquidweb.com/cloudsites/\">Onsite test</a>\r\n```","created_at":"2016-12-30T07:04:55Z","updated_at":"2016-12-30T07:04:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/spatie/crawler/pulls/49/commits","review_comments_url":"https://api.github.com/repos/spatie/crawler/pulls/49/comments","review_comment_url":"https://api.github.com/repos/spatie/crawler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spatie/crawler/issues/49/comments","statuses_url":"https://api.github.com/repos/spatie/crawler/statuses/d88ea14b36e7b876e815d65ff0bd6d36fcbe7304","head":{"label":"mallardduck:track-htmlnodes","ref":"track-htmlnodes","sha":"d88ea14b36e7b876e815d65ff0bd6d36fcbe7304","user":{"login":"mallardduck","id":619938,"avatar_url":"https://avatars.githubusercontent.com/u/619938?v=3","gravatar_id":"","url":"https://api.github.com/users/mallardduck","html_url":"https://github.com/mallardduck","followers_url":"https://api.github.com/users/mallardduck/followers","following_url":"https://api.github.com/users/mallardduck/following{/other_user}","gists_url":"https://api.github.com/users/mallardduck/gists{/gist_id}","starred_url":"https://api.github.com/users/mallardduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mallardduck/subscriptions","organizations_url":"https://api.github.com/users/mallardduck/orgs","repos_url":"https://api.github.com/users/mallardduck/repos","events_url":"https://api.github.com/users/mallardduck/events{/privacy}","received_events_url":"https://api.github.com/users/mallardduck/received_events","type":"User","site_admin":false},"repo":{"id":77627030,"name":"crawler","full_name":"mallardduck/crawler","owner":{"login":"mallardduck","id":619938,"avatar_url":"https://avatars.githubusercontent.com/u/619938?v=3","gravatar_id":"","url":"https://api.github.com/users/mallardduck","html_url":"https://github.com/mallardduck","followers_url":"https://api.github.com/users/mallardduck/followers","following_url":"https://api.github.com/users/mallardduck/following{/other_user}","gists_url":"https://api.github.com/users/mallardduck/gists{/gist_id}","starred_url":"https://api.github.com/users/mallardduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mallardduck/subscriptions","organizations_url":"https://api.github.com/users/mallardduck/orgs","repos_url":"https://api.github.com/users/mallardduck/repos","events_url":"https://api.github.com/users/mallardduck/events{/privacy}","received_events_url":"https://api.github.com/users/mallardduck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mallardduck/crawler","description":"Crawl all links found on a website","fork":true,"url":"https://api.github.com/repos/mallardduck/crawler","forks_url":"https://api.github.com/repos/mallardduck/crawler/forks","keys_url":"https://api.github.com/repos/mallardduck/crawler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mallardduck/crawler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mallardduck/crawler/teams","hooks_url":"https://api.github.com/repos/mallardduck/crawler/hooks","issue_events_url":"https://api.github.com/repos/mallardduck/crawler/issues/events{/number}","events_url":"https://api.github.com/repos/mallardduck/crawler/events","assignees_url":"https://api.github.com/repos/mallardduck/crawler/assignees{/user}","branches_url":"https://api.github.com/repos/mallardduck/crawler/branches{/branch}","tags_url":"https://api.github.com/repos/mallardduck/crawler/tags","blobs_url":"https://api.github.com/repos/mallardduck/crawler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mallardduck/crawler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mallardduck/crawler/git/refs{/sha}","trees_url":"https://api.github.com/repos/mallardduck/crawler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mallardduck/crawler/statuses/{sha}","languages_url":"https://api.github.com/repos/mallardduck/crawler/languages","stargazers_url":"https://api.github.com/repos/mallardduck/crawler/stargazers","contributors_url":"https://api.github.com/repos/mallardduck/crawler/contributors","subscribers_url":"https://api.github.com/repos/mallardduck/crawler/subscribers","subscription_url":"https://api.github.com/repos/mallardduck/crawler/subscription","commits_url":"https://api.github.com/repos/mallardduck/crawler/commits{/sha}","git_commits_url":"https://api.github.com/repos/mallardduck/crawler/git/commits{/sha}","comments_url":"https://api.github.com/repos/mallardduck/crawler/comments{/number}","issue_comment_url":"https://api.github.com/repos/mallardduck/crawler/issues/comments{/number}","contents_url":"https://api.github.com/repos/mallardduck/crawler/contents/{+path}","compare_url":"https://api.github.com/repos/mallardduck/crawler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mallardduck/crawler/merges","archive_url":"https://api.github.com/repos/mallardduck/crawler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mallardduck/crawler/downloads","issues_url":"https://api.github.com/repos/mallardduck/crawler/issues{/number}","pulls_url":"https://api.github.com/repos/mallardduck/crawler/pulls{/number}","milestones_url":"https://api.github.com/repos/mallardduck/crawler/milestones{/number}","notifications_url":"https://api.github.com/repos/mallardduck/crawler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mallardduck/crawler/labels{/name}","releases_url":"https://api.github.com/repos/mallardduck/crawler/releases{/id}","deployments_url":"https://api.github.com/repos/mallardduck/crawler/deployments","created_at":"2016-12-29T16:59:24Z","updated_at":"2016-12-29T16:59:27Z","pushed_at":"2016-12-30T06:59:50Z","git_url":"git://github.com/mallardduck/crawler.git","ssh_url":"git@github.com:mallardduck/crawler.git","clone_url":"https://github.com/mallardduck/crawler.git","svn_url":"https://github.com/mallardduck/crawler","homepage":"https://murze.be/2015/11/building-a-crawler-in-php/","size":98,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spatie:master","ref":"master","sha":"4b8516bc9fc78e5869aa0ac7baedab85d2a0bad3","user":{"login":"spatie","id":7535935,"avatar_url":"https://avatars.githubusercontent.com/u/7535935?v=3","gravatar_id":"","url":"https://api.github.com/users/spatie","html_url":"https://github.com/spatie","followers_url":"https://api.github.com/users/spatie/followers","following_url":"https://api.github.com/users/spatie/following{/other_user}","gists_url":"https://api.github.com/users/spatie/gists{/gist_id}","starred_url":"https://api.github.com/users/spatie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spatie/subscriptions","organizations_url":"https://api.github.com/users/spatie/orgs","repos_url":"https://api.github.com/users/spatie/repos","events_url":"https://api.github.com/users/spatie/events{/privacy}","received_events_url":"https://api.github.com/users/spatie/received_events","type":"Organization","site_admin":false},"repo":{"id":45406338,"name":"crawler","full_name":"spatie/crawler","owner":{"login":"spatie","id":7535935,"avatar_url":"https://avatars.githubusercontent.com/u/7535935?v=3","gravatar_id":"","url":"https://api.github.com/users/spatie","html_url":"https://github.com/spatie","followers_url":"https://api.github.com/users/spatie/followers","following_url":"https://api.github.com/users/spatie/following{/other_user}","gists_url":"https://api.github.com/users/spatie/gists{/gist_id}","starred_url":"https://api.github.com/users/spatie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spatie/subscriptions","organizations_url":"https://api.github.com/users/spatie/orgs","repos_url":"https://api.github.com/users/spatie/repos","events_url":"https://api.github.com/users/spatie/events{/privacy}","received_events_url":"https://api.github.com/users/spatie/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spatie/crawler","description":"Crawl all links found on a website","fork":false,"url":"https://api.github.com/repos/spatie/crawler","forks_url":"https://api.github.com/repos/spatie/crawler/forks","keys_url":"https://api.github.com/repos/spatie/crawler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spatie/crawler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spatie/crawler/teams","hooks_url":"https://api.github.com/repos/spatie/crawler/hooks","issue_events_url":"https://api.github.com/repos/spatie/crawler/issues/events{/number}","events_url":"https://api.github.com/repos/spatie/crawler/events","assignees_url":"https://api.github.com/repos/spatie/crawler/assignees{/user}","branches_url":"https://api.github.com/repos/spatie/crawler/branches{/branch}","tags_url":"https://api.github.com/repos/spatie/crawler/tags","blobs_url":"https://api.github.com/repos/spatie/crawler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spatie/crawler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spatie/crawler/git/refs{/sha}","trees_url":"https://api.github.com/repos/spatie/crawler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spatie/crawler/statuses/{sha}","languages_url":"https://api.github.com/repos/spatie/crawler/languages","stargazers_url":"https://api.github.com/repos/spatie/crawler/stargazers","contributors_url":"https://api.github.com/repos/spatie/crawler/contributors","subscribers_url":"https://api.github.com/repos/spatie/crawler/subscribers","subscription_url":"https://api.github.com/repos/spatie/crawler/subscription","commits_url":"https://api.github.com/repos/spatie/crawler/commits{/sha}","git_commits_url":"https://api.github.com/repos/spatie/crawler/git/commits{/sha}","comments_url":"https://api.github.com/repos/spatie/crawler/comments{/number}","issue_comment_url":"https://api.github.com/repos/spatie/crawler/issues/comments{/number}","contents_url":"https://api.github.com/repos/spatie/crawler/contents/{+path}","compare_url":"https://api.github.com/repos/spatie/crawler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spatie/crawler/merges","archive_url":"https://api.github.com/repos/spatie/crawler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spatie/crawler/downloads","issues_url":"https://api.github.com/repos/spatie/crawler/issues{/number}","pulls_url":"https://api.github.com/repos/spatie/crawler/pulls{/number}","milestones_url":"https://api.github.com/repos/spatie/crawler/milestones{/number}","notifications_url":"https://api.github.com/repos/spatie/crawler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spatie/crawler/labels{/name}","releases_url":"https://api.github.com/repos/spatie/crawler/releases{/id}","deployments_url":"https://api.github.com/repos/spatie/crawler/deployments","created_at":"2015-11-02T16:22:09Z","updated_at":"2016-12-29T22:07:26Z","pushed_at":"2016-12-29T17:57:35Z","git_url":"git://github.com/spatie/crawler.git","ssh_url":"git@github.com:spatie/crawler.git","clone_url":"https://github.com/spatie/crawler.git","svn_url":"https://github.com/spatie/crawler","homepage":"https://murze.be/2015/11/building-a-crawler-in-php/","size":78,"stargazers_count":130,"watchers_count":130,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":3,"forks":17,"open_issues":3,"watchers":130,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spatie/crawler/pulls/49"},"html":{"href":"https://github.com/spatie/crawler/pull/49"},"issue":{"href":"https://api.github.com/repos/spatie/crawler/issues/49"},"comments":{"href":"https://api.github.com/repos/spatie/crawler/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/spatie/crawler/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/spatie/crawler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spatie/crawler/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/spatie/crawler/statuses/d88ea14b36e7b876e815d65ff0bd6d36fcbe7304"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":98,"deletions":14,"changed_files":5}}
{"actor":{"display_login":"mallardduck"}}