{"action":"created","issue":{"url":"https://api.github.com/repos/firecat53/urlscan/issues/75","repository_url":"https://api.github.com/repos/firecat53/urlscan","labels_url":"https://api.github.com/repos/firecat53/urlscan/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/firecat53/urlscan/issues/75/comments","events_url":"https://api.github.com/repos/firecat53/urlscan/issues/75/events","html_url":"https://github.com/firecat53/urlscan/issues/75","id":377311956,"node_id":"MDU6SXNzdWUzNzczMTE5NTY=","number":75,"title":"AttributeError: 'list' object has no attribute 'encode'","user":{"login":"desaismita","id":44767855,"node_id":"MDQ6VXNlcjQ0NzY3ODU1","avatar_url":"https://avatars3.githubusercontent.com/u/44767855?v=4","gravatar_id":"","url":"https://api.github.com/users/desaismita","html_url":"https://github.com/desaismita","followers_url":"https://api.github.com/users/desaismita/followers","following_url":"https://api.github.com/users/desaismita/following{/other_user}","gists_url":"https://api.github.com/users/desaismita/gists{/gist_id}","starred_url":"https://api.github.com/users/desaismita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desaismita/subscriptions","organizations_url":"https://api.github.com/users/desaismita/orgs","repos_url":"https://api.github.com/users/desaismita/repos","events_url":"https://api.github.com/users/desaismita/events{/privacy}","received_events_url":"https://api.github.com/users/desaismita/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-05T09:21:23Z","updated_at":"2018-11-05T09:22:29Z","closed_at":null,"author_association":"NONE","body":"from lxml import html\r\nimport requests\r\n\r\nclass AppCrawler:\r\n\r\n    def __init__(self,starting_url,depth):\r\n        self.starting_url = starting_url\r\n        self.depth = depth\r\n        self.apps = []\r\n\r\n    def crawl(self):\r\n        self.get_app_from_link(self.starting_url)\r\n        return\r\n\r\n\r\n    def get_app_from_link(self,Link):\r\n        start_page = requests.get(Link)\r\n        tree = html.fromstring(start_page.text)\r\n\r\n        name = tree.xpath('//a[@class=\"link\"]/text()')\r\n        developer = tree.xpath('//div[@class=\"section__nav\"]/h2/text()')[0]\r\n        price = tree.xpath('//div[@class=\"l-row\"]//*/h2/text()')[0]\r\n        links = tree.xpath('//div[@class=\"section__nav\"]//*/a[@class=\"link section__nav__see-all-link ember-view\"]/@href')\r\n\r\n        app = App(name,developer,price,links)\r\n\r\n        self.apps.append(app)\r\n\r\n        #print(links)\r\n        return\r\n\r\nclass App:\r\n    def __init__(self,name,developer,price,links):\r\n        self.name = name\r\n        self.developer = developer\r\n        self.price = price\r\n        self.links = links\r\n\r\n\r\n    def __str__(self):\r\n        return('Name :' + self.name.encode('UTF-8') +\r\n        '\\r\\nDeveloper :' + self.developer.encode('UTF-8') +\r\n        '\\r\\nPrice :' + self.price.encode('UTF-8'))\r\n\r\ncrawler = AppCrawler(\"https://itunes.apple.com/us/app/candy-crush-saga/id553834731?mt=8\", 0)\r\n\r\ncrawler.crawl()\r\n\r\nfor app in crawler.apps:\r\n    print (app)\r\n"},"comment":{"url":"https://api.github.com/repos/firecat53/urlscan/issues/comments/435806957","html_url":"https://github.com/firecat53/urlscan/issues/75#issuecomment-435806957","issue_url":"https://api.github.com/repos/firecat53/urlscan/issues/75","id":435806957,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTgwNjk1Nw==","user":{"login":"desaismita","id":44767855,"node_id":"MDQ6VXNlcjQ0NzY3ODU1","avatar_url":"https://avatars3.githubusercontent.com/u/44767855?v=4","gravatar_id":"","url":"https://api.github.com/users/desaismita","html_url":"https://github.com/desaismita","followers_url":"https://api.github.com/users/desaismita/followers","following_url":"https://api.github.com/users/desaismita/following{/other_user}","gists_url":"https://api.github.com/users/desaismita/gists{/gist_id}","starred_url":"https://api.github.com/users/desaismita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desaismita/subscriptions","organizations_url":"https://api.github.com/users/desaismita/orgs","repos_url":"https://api.github.com/users/desaismita/repos","events_url":"https://api.github.com/users/desaismita/events{/privacy}","received_events_url":"https://api.github.com/users/desaismita/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T09:22:29Z","updated_at":"2018-11-05T09:22:29Z","author_association":"NONE","body":"Can anybody help me know why am I getting this error?"}}
{"actor":{"display_login":"desaismita"}}