{"action":"created","issue":{"url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1613","repository_url":"https://api.github.com/repos/instabot-py/instabot.py","labels_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1613/labels{/name}","comments_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1613/comments","events_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1613/events","html_url":"https://github.com/instabot-py/instabot.py/issues/1613","id":363148484,"node_id":"MDU6SXNzdWUzNjMxNDg0ODQ=","number":1613,"title":"DatabaseError: database disk image is malformed PLEASE HELP ME!","user":{"login":"rugge89lau","id":37455712,"node_id":"MDQ6VXNlcjM3NDU1NzEy","avatar_url":"https://avatars1.githubusercontent.com/u/37455712?v=4","gravatar_id":"","url":"https://api.github.com/users/rugge89lau","html_url":"https://github.com/rugge89lau","followers_url":"https://api.github.com/users/rugge89lau/followers","following_url":"https://api.github.com/users/rugge89lau/following{/other_user}","gists_url":"https://api.github.com/users/rugge89lau/gists{/gist_id}","starred_url":"https://api.github.com/users/rugge89lau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rugge89lau/subscriptions","organizations_url":"https://api.github.com/users/rugge89lau/orgs","repos_url":"https://api.github.com/users/rugge89lau/repos","events_url":"https://api.github.com/users/rugge89lau/events{/privacy}","received_events_url":"https://api.github.com/users/rugge89lau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-24T13:33:40Z","updated_at":"2018-10-02T13:02:16Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nBefore opening a new issue, please ensure:\r\n- You search for existing bugs/feature requests\r\n- Remove extraneous template details\r\n- Do not prefix title with type of issue (Feature Request, Bug, etc.) The appropriate labels will be added during triage.\r\n- Do not delete any of the template, fill all of it in; even if you think it doesn't apply to your issue.\r\n- If you fail to follow these simple instructions, we will close the ticket.\r\n- [x] This is a checked box. **Do not leave spaces around the `x`!**\r\n-->\r\n\r\nCheck this or we will delete your issue. (fill in the checkbox with an X like so: [x])\r\n- [x] I have searched for other issues with the same problem. (including #1153)\r\n\r\n## Hosting\r\n- [ ] Are you hosting the bot on a VPS or other Cloud hosting?\r\n- [ ] If so; have you tried running the code on your local machine?\r\n\r\n#### Select one:\r\n- [ ] Bug\r\n- [ ] Feature Request\r\n- [ ] Technical Help\r\n- [ ] Other\r\n\r\n### Operating System? (include version)\r\n- [x] MAC\r\n- [ ] Windows\r\n- [ ] Linux\r\n- [ ] Android\r\n\r\n## Python Version?\r\n- [ ] 2.x\r\n- [x] 3.x\r\n\r\n## Description of your issue\r\n\r\n```\r\nHELP please, since 1 month I have this problem!\r\ncan you help me???\r\n\r\nTraceback (most recent call last):\r\n  File \"example.py\", line 16, in <module>\r\n    log_mod = 1)\r\n  File \"/Users/ruggero/Downloads/instabot.py-master/src/instabot.py\", line 162, in __init__\r\n    check_and_update(self)\r\n  File \"/Users/ruggero/Downloads/instabot.py-master/src/sql_updates.py\", line 7, in check_and_update\r\n    self.follows_db_c.execute(\"CREATE TABLE IF NOT EXISTS usernames (username varchar(300))\")\r\nsqlite3.DatabaseError: database disk image is malformed\r\nMac-Pro-di-Ruggero:instabot.py-master ruggero$ \r\n```\r\n\r\n## Config\r\n\r\n```\r\n#!/usr/bin/env python\r\n# -*- coding: utf-8 -*-\r\nimport os\r\nimport time\r\n\r\nfrom src import InstaBot\r\nfrom src.check_status import check_status\r\nfrom src.feed_scanner import feed_scanner\r\nfrom src.follow_protocol import follow_protocol\r\nfrom src.unfollow_protocol import unfollow_protocol\r\n\r\nbot = InstaBot(\r\n               like_per_day=2000,\r\n               media_max_like=50,\r\n               tag_list = ['minimal', 'learnminimalism', 'rsa_minimal', 'jj_minimal', 'minimal_experience', 'minimal_masters', 'transfer_visions', 'mindtheminimal','minimal_perfection','haveboatwilltravel','liveaboardlife','sailingstagram','sailinglife','folkscenery','folkgood','pioneeradventures','mountainadventures','welivetoexplore','roamtheplanet','fiftyshades_of_nature','nature_perfection','ig_mountains','folkcreative','folkvibe'],\r\n               log_mod = 1)\r\nwhile True:\r\n\r\n    #print(\"# MODE 0 = ORIGINAL MODE BY LEVPASHA\")\r\n    #print(\"## MODE 1 = MODIFIED MODE BY KEMONG\")\r\n    #print(\"### MODE 2 = ORIGINAL MODE + UNFOLLOW WHO DON'T FOLLOW BACK\")\r\n    #print(\"#### MODE 3 = MODIFIED MODE : UNFOLLOW USERS WHO DON'T FOLLOW YOU BASED ON RECENT FEED\")\r\n    #print(\"##### MODE 4 = MODIFIED MODE : FOLLOW USERS BASED ON RECENT FEED ONLY\")\r\n    #print(\"###### MODE 5 = MODIFIED MODE : JUST UNFOLLOW EVERYBODY, EITHER YOUR FOLLOWER OR NOT\")\r\n\r\n    ################################\r\n    ##  WARNING   ###\r\n    ################################\r\n\r\n    # DON'T USE MODE 5 FOR A LONG PERIOD. YOU RISK YOUR ACCOUNT FROM GETTING BANNED\r\n    ## USE MODE 5 IN BURST MODE, USE IT TO UNFOLLOW PEOPLE AS MANY AS YOU WANT IN SHORT TIME PERIOD\r\n\r\n    mode = 0\r\n\r\n    #print(\"You choose mode : %i\" %(mode))\r\n    #print(\"CTRL + C to cancel this operation or wait 30 seconds to start\")\r\n    #time.sleep(30)\r\n\r\n    if mode == 0:\r\n        bot.new_auto_mod()\r\n\r\n    elif mode == 1:\r\n        check_status(bot)\r\n        while bot.self_following - bot.self_follower > 200:\r\n            unfollow_protocol(bot)\r\n            time.sleep(10 * 60)\r\n            check_status(bot)\r\n        while bot.self_following - bot.self_follower < 400:\r\n            while len(bot.user_info_list) < 50:\r\n                feed_scanner(bot)\r\n                time.sleep(5 * 60)\r\n                follow_protocol(bot)\r\n                time.sleep(10 * 60)\r\n                check_status(bot)\r\n\r\n    elif mode == 2:\r\n        bot.bot_mode = 1\r\n        bot.new_auto_mod()\r\n\r\n    elif mode == 3:\r\n        unfollow_protocol(bot)\r\n        time.sleep(10 * 60)\r\n\r\n    elif mode == 4:\r\n        feed_scanner(bot)\r\n        time.sleep(60)\r\n        follow_protocol(bot)\r\n        time.sleep(10 * 60)\r\n\r\n    elif mode == 5:\r\n        bot.bot_mode = 2\r\n        unfollow_protocol(bot)\r\n\r\n    else:\r\n        print(\"Wrong mode!\")\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/instabot-py/instabot.py/issues/comments/426264682","html_url":"https://github.com/instabot-py/instabot.py/issues/1613#issuecomment-426264682","issue_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1613","id":426264682,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjI2NDY4Mg==","user":{"login":"rugge89lau","id":37455712,"node_id":"MDQ6VXNlcjM3NDU1NzEy","avatar_url":"https://avatars1.githubusercontent.com/u/37455712?v=4","gravatar_id":"","url":"https://api.github.com/users/rugge89lau","html_url":"https://github.com/rugge89lau","followers_url":"https://api.github.com/users/rugge89lau/followers","following_url":"https://api.github.com/users/rugge89lau/following{/other_user}","gists_url":"https://api.github.com/users/rugge89lau/gists{/gist_id}","starred_url":"https://api.github.com/users/rugge89lau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rugge89lau/subscriptions","organizations_url":"https://api.github.com/users/rugge89lau/orgs","repos_url":"https://api.github.com/users/rugge89lau/repos","events_url":"https://api.github.com/users/rugge89lau/events{/privacy}","received_events_url":"https://api.github.com/users/rugge89lau/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T13:02:16Z","updated_at":"2018-10-02T13:02:16Z","author_association":"NONE","body":"solved just deleted the db file......................."}}
{"actor":{"display_login":"rugge89lau"}}