{"action":"created","issue":{"url":"https://api.github.com/repos/Dcom-KHU/Sigmund/issues/12","repository_url":"https://api.github.com/repos/Dcom-KHU/Sigmund","labels_url":"https://api.github.com/repos/Dcom-KHU/Sigmund/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Dcom-KHU/Sigmund/issues/12/comments","events_url":"https://api.github.com/repos/Dcom-KHU/Sigmund/issues/12/events","html_url":"https://github.com/Dcom-KHU/Sigmund/issues/12","id":360302643,"node_id":"MDU6SXNzdWUzNjAzMDI2NDM=","number":12,"title":"url 데이터와 사진을 받아오는 방법에 대해서","user":{"login":"JINHYUNGP","id":37439745,"node_id":"MDQ6VXNlcjM3NDM5NzQ1","avatar_url":"https://avatars3.githubusercontent.com/u/37439745?v=4","gravatar_id":"","url":"https://api.github.com/users/JINHYUNGP","html_url":"https://github.com/JINHYUNGP","followers_url":"https://api.github.com/users/JINHYUNGP/followers","following_url":"https://api.github.com/users/JINHYUNGP/following{/other_user}","gists_url":"https://api.github.com/users/JINHYUNGP/gists{/gist_id}","starred_url":"https://api.github.com/users/JINHYUNGP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JINHYUNGP/subscriptions","organizations_url":"https://api.github.com/users/JINHYUNGP/orgs","repos_url":"https://api.github.com/users/JINHYUNGP/repos","events_url":"https://api.github.com/users/JINHYUNGP/events{/privacy}","received_events_url":"https://api.github.com/users/JINHYUNGP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-14T13:21:57Z","updated_at":"2018-09-14T15:17:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Detail\r\ncss selector로 복사하는 것 까지는 했는데 가령\r\n(\"#container > div.content-area > div.content-wrap > div.content > div:nth-child(4) > div > ul > li:nth-child(2) > div.tit > a\") 라는 주소를 받아왔다면\r\nurl_in_url = bbs[0].findAll(\"div\", {\"class\": \"a\"}) 라고 정의하면 url을 받아올 수 있을까요?\r\n\r\n그리고 두번째 질문인 사진을 받아오는 작업을 할 때 메인 페이지 자체에서는 사진에 대한 링크가 없는데 그럴때의 해결방안이 궁금합니다.  일단 컴파일은 되는 것 같은데 qr코드가 어디에 저장되어 있는지도 잘 모르겠네요.. 밑의 코드는 crawling 파일의 조금을 바꿔본 건데 제가 깃을 잘 다룰 줄을 몰라서 일단 이렇게 올려봅니다...\r\n\r\nbbs = soup.select(\"#container > div.content-area > div.content-wrap > div.content\")\r\n\r\n\r\ntitles = bbs[0].findAll(\"div\", {\"class\": \"tit\"})\r\norgans = bbs[0].findAll(\"div\", {\"class\": \"organ\"})\r\nremaindate = bbs[0].findAll(\"div\", {\"class\": \"day\"})\r\nurl_in_url = bbs[0].findAll(\"div\", {\"class\": \"a\"})\r\nqr = qrcode.QRCode(\r\n    version=1,\r\n    error_correction=qrcode.constants.ERROR_CORRECT_L,\r\n    box_size=10,\r\n    border=4,\r\n)\r\nqr.add_data('url_in_url')\r\nqr.make(fit=True)\r\n\r\nimg = qr.make_image()\r\nimg.save(\"qrcode.png\")\r\nqr.clear()\r\n\r\n\r\n\r\n\r\n\r\n## Reference \r\n[//]: # (참고 사진, 사이트 링크)\r\n\r\n[//]: # (추가사항 요청은 new feature 라벨을 )\r\n"},"comment":{"url":"https://api.github.com/repos/Dcom-KHU/Sigmund/issues/comments/421391742","html_url":"https://github.com/Dcom-KHU/Sigmund/issues/12#issuecomment-421391742","issue_url":"https://api.github.com/repos/Dcom-KHU/Sigmund/issues/12","id":421391742,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTM5MTc0Mg==","user":{"login":"kairos03","id":6357456,"node_id":"MDQ6VXNlcjYzNTc0NTY=","avatar_url":"https://avatars1.githubusercontent.com/u/6357456?v=4","gravatar_id":"","url":"https://api.github.com/users/kairos03","html_url":"https://github.com/kairos03","followers_url":"https://api.github.com/users/kairos03/followers","following_url":"https://api.github.com/users/kairos03/following{/other_user}","gists_url":"https://api.github.com/users/kairos03/gists{/gist_id}","starred_url":"https://api.github.com/users/kairos03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kairos03/subscriptions","organizations_url":"https://api.github.com/users/kairos03/orgs","repos_url":"https://api.github.com/users/kairos03/repos","events_url":"https://api.github.com/users/kairos03/events{/privacy}","received_events_url":"https://api.github.com/users/kairos03/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T15:17:12Z","updated_at":"2018-09-14T15:17:12Z","author_association":"CONTRIBUTOR","body":"일단 첫번째는 a태그의 href옵션을 가져오면 링크를 가져오는겁니다 옵션을 가져오는 방법을 찾아보아요!"}}
{"actor":{"display_login":"kairos03"}}