{"action":"created","comment":{"url":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/comments/324712119","pull_request_review_id":288675774,"id":324712119,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyNDcxMjExOQ==","diff_hunk":"@@ -0,0 +1,84 @@\n+package main\n+\n+import (\n+\t\"fmt\"\n+\t\"flag\"\n+\t\"strings\"\n+\t\"net/http\"\n+\t\"io/ioutil\"\n+\t\"github.com/jackdanger/collectlinks\" //Da uma olhada melhor nessa library\n+)\n+\n+const linkPrincipal = \"http://www.mpsp.mp.br/portal/page/portal/Portal_da_Transparencia/Contracheque/\"\n+var categorias = [10]string{\n+\t\"Membros_ativos\",\n+\t\"Membros_inativos\",\n+\t\"Servidores_ativos\",\n+\t\"servidores_inativos\",\n+\t\"Pensionistas/Pensionistas_membros\",\n+\t\"Pensionistas/Pensionistas_servidores\",\n+\t\"valores_colaboradores\",\n+\t\"Verbas-exec-anteriores/Verbas-exec-anteriores-Servidores\",\n+\t\"/Verbas-exec-anteriores/Verbas-exec-anteriores-Membros/Ativos_membros\",\n+\t\"Verbas-exec-anteriores/Verbas-exec-anteriores-Membros/Inativos_membros\",\n+}\n+\n+func main(){\n+\tmes := flag.Int(\"mes\", 1234, \"O mês da planilha\")\n+\tano := flag.Int(\"ano\", 1234, \"O ano da planilha\")\n+\t\n+\tflag.Parse()\n+\n+\tfmt.Println(\"Mês: \")","path":"crawler/MPPB/crawler-mpsp.go","position":32,"original_position":32,"commit_id":"3ea6531fd3abc027b20faae80718142785cd281d","original_commit_id":"3ea6531fd3abc027b20faae80718142785cd281d","user":{"login":"danielfireman","id":8951363,"node_id":"MDQ6VXNlcjg5NTEzNjM=","avatar_url":"https://avatars1.githubusercontent.com/u/8951363?v=4","gravatar_id":"","url":"https://api.github.com/users/danielfireman","html_url":"https://github.com/danielfireman","followers_url":"https://api.github.com/users/danielfireman/followers","following_url":"https://api.github.com/users/danielfireman/following{/other_user}","gists_url":"https://api.github.com/users/danielfireman/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfireman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfireman/subscriptions","organizations_url":"https://api.github.com/users/danielfireman/orgs","repos_url":"https://api.github.com/users/danielfireman/repos","events_url":"https://api.github.com/users/danielfireman/events{/privacy}","received_events_url":"https://api.github.com/users/danielfireman/received_events","type":"User","site_admin":false},"body":"fmt.Printf(\"Mês: %d\", *mes)\r\nfmt.Printf(\"Ano: %d\", *ano)","created_at":"2019-09-16T14:38:01Z","updated_at":"2019-09-16T14:43:46Z","html_url":"https://github.com/dadosjusbr/remuneracoes/pull/109#discussion_r324712119","pull_request_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/109","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/comments/324712119"},"html":{"href":"https://github.com/dadosjusbr/remuneracoes/pull/109#discussion_r324712119"},"pull_request":{"href":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/109"}}},"pull_request":{"url":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/109","id":317898040,"node_id":"MDExOlB1bGxSZXF1ZXN0MzE3ODk4MDQw","html_url":"https://github.com/dadosjusbr/remuneracoes/pull/109","diff_url":"https://github.com/dadosjusbr/remuneracoes/pull/109.diff","patch_url":"https://github.com/dadosjusbr/remuneracoes/pull/109.patch","issue_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/issues/109","number":109,"state":"open","locked":false,"title":"Primeiros crawlers","user":{"login":"davidedup","id":25506334,"node_id":"MDQ6VXNlcjI1NTA2MzM0","avatar_url":"https://avatars1.githubusercontent.com/u/25506334?v=4","gravatar_id":"","url":"https://api.github.com/users/davidedup","html_url":"https://github.com/davidedup","followers_url":"https://api.github.com/users/davidedup/followers","following_url":"https://api.github.com/users/davidedup/following{/other_user}","gists_url":"https://api.github.com/users/davidedup/gists{/gist_id}","starred_url":"https://api.github.com/users/davidedup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidedup/subscriptions","organizations_url":"https://api.github.com/users/davidedup/orgs","repos_url":"https://api.github.com/users/davidedup/repos","events_url":"https://api.github.com/users/davidedup/events{/privacy}","received_events_url":"https://api.github.com/users/davidedup/received_events","type":"User","site_admin":false},"body":"#104 \r\nEstrutura inicial do crawler. Estou trabalhando agora na filtragem por mês e ano. ","created_at":"2019-09-16T14:06:14Z","updated_at":"2019-09-16T14:43:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80285af8c56d1d4590d0ea7c7cfde283eff55a5a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/109/commits","review_comments_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/109/comments","review_comment_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/issues/109/comments","statuses_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/statuses/3ea6531fd3abc027b20faae80718142785cd281d","head":{"label":"dadosjusbr:primeiros-crawlers","ref":"primeiros-crawlers","sha":"3ea6531fd3abc027b20faae80718142785cd281d","user":{"login":"dadosjusbr","id":42877484,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyODc3NDg0","avatar_url":"https://avatars0.githubusercontent.com/u/42877484?v=4","gravatar_id":"","url":"https://api.github.com/users/dadosjusbr","html_url":"https://github.com/dadosjusbr","followers_url":"https://api.github.com/users/dadosjusbr/followers","following_url":"https://api.github.com/users/dadosjusbr/following{/other_user}","gists_url":"https://api.github.com/users/dadosjusbr/gists{/gist_id}","starred_url":"https://api.github.com/users/dadosjusbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadosjusbr/subscriptions","organizations_url":"https://api.github.com/users/dadosjusbr/orgs","repos_url":"https://api.github.com/users/dadosjusbr/repos","events_url":"https://api.github.com/users/dadosjusbr/events{/privacy}","received_events_url":"https://api.github.com/users/dadosjusbr/received_events","type":"Organization","site_admin":false},"repo":{"id":146936638,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY5MzY2Mzg=","name":"remuneracoes","full_name":"dadosjusbr/remuneracoes","private":false,"owner":{"login":"dadosjusbr","id":42877484,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyODc3NDg0","avatar_url":"https://avatars0.githubusercontent.com/u/42877484?v=4","gravatar_id":"","url":"https://api.github.com/users/dadosjusbr","html_url":"https://github.com/dadosjusbr","followers_url":"https://api.github.com/users/dadosjusbr/followers","following_url":"https://api.github.com/users/dadosjusbr/following{/other_user}","gists_url":"https://api.github.com/users/dadosjusbr/gists{/gist_id}","starred_url":"https://api.github.com/users/dadosjusbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadosjusbr/subscriptions","organizations_url":"https://api.github.com/users/dadosjusbr/orgs","repos_url":"https://api.github.com/users/dadosjusbr/repos","events_url":"https://api.github.com/users/dadosjusbr/events{/privacy}","received_events_url":"https://api.github.com/users/dadosjusbr/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dadosjusbr/remuneracoes","description":"Libertação contínua de dados sobre remuneração dos magistrados","fork":false,"url":"https://api.github.com/repos/dadosjusbr/remuneracoes","forks_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/forks","keys_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/teams","hooks_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/hooks","issue_events_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/issues/events{/number}","events_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/events","assignees_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/assignees{/user}","branches_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/branches{/branch}","tags_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/tags","blobs_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/git/refs{/sha}","trees_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/statuses/{sha}","languages_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/languages","stargazers_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/stargazers","contributors_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/contributors","subscribers_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/subscribers","subscription_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/subscription","commits_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/commits{/sha}","git_commits_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/git/commits{/sha}","comments_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/comments{/number}","issue_comment_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/issues/comments{/number}","contents_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/contents/{+path}","compare_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/merges","archive_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/downloads","issues_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/issues{/number}","pulls_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls{/number}","milestones_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/milestones{/number}","notifications_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/labels{/name}","releases_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/releases{/id}","deployments_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/deployments","created_at":"2018-08-31T19:53:03Z","updated_at":"2019-09-02T16:43:29Z","pushed_at":"2019-09-16T14:06:14Z","git_url":"git://github.com/dadosjusbr/remuneracoes.git","ssh_url":"git@github.com:dadosjusbr/remuneracoes.git","clone_url":"https://github.com/dadosjusbr/remuneracoes.git","svn_url":"https://github.com/dadosjusbr/remuneracoes","homepage":"https://dadosjusbr.online","size":3904,"stargazers_count":14,"watchers_count":14,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":30,"license":null,"forks":1,"open_issues":30,"watchers":14,"default_branch":"master"}},"base":{"label":"dadosjusbr:master","ref":"master","sha":"8f8678b6f052e520747e3cec82dc9165d165d56b","user":{"login":"dadosjusbr","id":42877484,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyODc3NDg0","avatar_url":"https://avatars0.githubusercontent.com/u/42877484?v=4","gravatar_id":"","url":"https://api.github.com/users/dadosjusbr","html_url":"https://github.com/dadosjusbr","followers_url":"https://api.github.com/users/dadosjusbr/followers","following_url":"https://api.github.com/users/dadosjusbr/following{/other_user}","gists_url":"https://api.github.com/users/dadosjusbr/gists{/gist_id}","starred_url":"https://api.github.com/users/dadosjusbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadosjusbr/subscriptions","organizations_url":"https://api.github.com/users/dadosjusbr/orgs","repos_url":"https://api.github.com/users/dadosjusbr/repos","events_url":"https://api.github.com/users/dadosjusbr/events{/privacy}","received_events_url":"https://api.github.com/users/dadosjusbr/received_events","type":"Organization","site_admin":false},"repo":{"id":146936638,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY5MzY2Mzg=","name":"remuneracoes","full_name":"dadosjusbr/remuneracoes","private":false,"owner":{"login":"dadosjusbr","id":42877484,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyODc3NDg0","avatar_url":"https://avatars0.githubusercontent.com/u/42877484?v=4","gravatar_id":"","url":"https://api.github.com/users/dadosjusbr","html_url":"https://github.com/dadosjusbr","followers_url":"https://api.github.com/users/dadosjusbr/followers","following_url":"https://api.github.com/users/dadosjusbr/following{/other_user}","gists_url":"https://api.github.com/users/dadosjusbr/gists{/gist_id}","starred_url":"https://api.github.com/users/dadosjusbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadosjusbr/subscriptions","organizations_url":"https://api.github.com/users/dadosjusbr/orgs","repos_url":"https://api.github.com/users/dadosjusbr/repos","events_url":"https://api.github.com/users/dadosjusbr/events{/privacy}","received_events_url":"https://api.github.com/users/dadosjusbr/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dadosjusbr/remuneracoes","description":"Libertação contínua de dados sobre remuneração dos magistrados","fork":false,"url":"https://api.github.com/repos/dadosjusbr/remuneracoes","forks_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/forks","keys_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/teams","hooks_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/hooks","issue_events_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/issues/events{/number}","events_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/events","assignees_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/assignees{/user}","branches_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/branches{/branch}","tags_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/tags","blobs_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/git/refs{/sha}","trees_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/statuses/{sha}","languages_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/languages","stargazers_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/stargazers","contributors_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/contributors","subscribers_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/subscribers","subscription_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/subscription","commits_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/commits{/sha}","git_commits_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/git/commits{/sha}","comments_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/comments{/number}","issue_comment_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/issues/comments{/number}","contents_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/contents/{+path}","compare_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/merges","archive_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/downloads","issues_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/issues{/number}","pulls_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls{/number}","milestones_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/milestones{/number}","notifications_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/labels{/name}","releases_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/releases{/id}","deployments_url":"https://api.github.com/repos/dadosjusbr/remuneracoes/deployments","created_at":"2018-08-31T19:53:03Z","updated_at":"2019-09-02T16:43:29Z","pushed_at":"2019-09-16T14:06:14Z","git_url":"git://github.com/dadosjusbr/remuneracoes.git","ssh_url":"git@github.com:dadosjusbr/remuneracoes.git","clone_url":"https://github.com/dadosjusbr/remuneracoes.git","svn_url":"https://github.com/dadosjusbr/remuneracoes","homepage":"https://dadosjusbr.online","size":3904,"stargazers_count":14,"watchers_count":14,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":30,"license":null,"forks":1,"open_issues":30,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/109"},"html":{"href":"https://github.com/dadosjusbr/remuneracoes/pull/109"},"issue":{"href":"https://api.github.com/repos/dadosjusbr/remuneracoes/issues/109"},"comments":{"href":"https://api.github.com/repos/dadosjusbr/remuneracoes/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dadosjusbr/remuneracoes/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/dadosjusbr/remuneracoes/statuses/3ea6531fd3abc027b20faae80718142785cd281d"}},"author_association":"NONE"}}
{"actor":{"display_login":"danielfireman"}}