{"action":"created","issue":{"url":"https://api.github.com/repos/twintproject/twint/issues/154","repository_url":"https://api.github.com/repos/twintproject/twint","labels_url":"https://api.github.com/repos/twintproject/twint/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/twintproject/twint/issues/154/comments","events_url":"https://api.github.com/repos/twintproject/twint/issues/154/events","html_url":"https://github.com/twintproject/twint/issues/154","id":332848938,"node_id":"MDU6SXNzdWUzMzI4NDg5Mzg=","number":154,"title":"[QUESTION] sending tweets to Elasticsearch with only python script","user":{"login":"StefanoSetti","id":24635311,"node_id":"MDQ6VXNlcjI0NjM1MzEx","avatar_url":"https://avatars3.githubusercontent.com/u/24635311?v=4","gravatar_id":"","url":"https://api.github.com/users/StefanoSetti","html_url":"https://github.com/StefanoSetti","followers_url":"https://api.github.com/users/StefanoSetti/followers","following_url":"https://api.github.com/users/StefanoSetti/following{/other_user}","gists_url":"https://api.github.com/users/StefanoSetti/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanoSetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanoSetti/subscriptions","organizations_url":"https://api.github.com/users/StefanoSetti/orgs","repos_url":"https://api.github.com/users/StefanoSetti/repos","events_url":"https://api.github.com/users/StefanoSetti/events{/privacy}","received_events_url":"https://api.github.com/users/StefanoSetti/received_events","type":"User","site_admin":false},"labels":[{"id":623858250,"node_id":"MDU6TGFiZWw2MjM4NTgyNTA=","url":"https://api.github.com/repos/twintproject/twint/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-06-15T16:58:39Z","updated_at":"2018-06-16T11:13:52Z","closed_at":null,"author_association":"NONE","body":">I've checked the following:\r\n- [x] Python version is 3.5 or higher.\r\n- [X] Using the latest version of Twint.\r\n- [X] I have searched the issues and there are no duplicates of this issue/question/request.\r\n\r\nI'm trying to send tweets from an  python script directly to Elasticsearch because i don't need kebana for what i am doing, but using ```config.Elasticsearch = \"localhost:9200\"``` brings to me this error: \r\n```\r\nday = weekday(strftime(\"%A\", localtime(Tweet.datetime)))\r\nNameError: name 'weekday' is not defined\r\n```   \r\n### Python script\r\n```python\r\nimport twint\r\n\r\n# Set-up TWINW config\r\nconfig = twint.Config()\r\nconfig.Username      = \"revenantRED\"\r\nconfig.Since         = \"2018-06-10\"\r\nconfig.Store_json    = True\r\nconfig.Elasticsearch = \"localhost:9200\"\r\n\r\n# Start searching\r\ntwint.run.Profile(config)\r\n```\r\nwhat is wrong?\r\n\r\n### Environment Details\r\n> Using Fedora 28, executing scripts from terminal, ES is in local\r\n"},"comment":{"url":"https://api.github.com/repos/twintproject/twint/issues/comments/397805309","html_url":"https://github.com/twintproject/twint/issues/154#issuecomment-397805309","issue_url":"https://api.github.com/repos/twintproject/twint/issues/154","id":397805309,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzgwNTMwOQ==","user":{"login":"pielco11","id":17363750,"node_id":"MDQ6VXNlcjE3MzYzNzUw","avatar_url":"https://avatars3.githubusercontent.com/u/17363750?v=4","gravatar_id":"","url":"https://api.github.com/users/pielco11","html_url":"https://github.com/pielco11","followers_url":"https://api.github.com/users/pielco11/followers","following_url":"https://api.github.com/users/pielco11/following{/other_user}","gists_url":"https://api.github.com/users/pielco11/gists{/gist_id}","starred_url":"https://api.github.com/users/pielco11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pielco11/subscriptions","organizations_url":"https://api.github.com/users/pielco11/orgs","repos_url":"https://api.github.com/users/pielco11/repos","events_url":"https://api.github.com/users/pielco11/events{/privacy}","received_events_url":"https://api.github.com/users/pielco11/received_events","type":"User","site_admin":false},"created_at":"2018-06-16T11:13:52Z","updated_at":"2018-06-16T11:13:52Z","author_association":"COLLABORATOR","body":"`pip3 install mysqlclient` "}}
{"actor":{"display_login":"pielco11"}}