twintproject / twint

An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
MIT License
15.66k stars 2.72k forks source link

[ERROR] Getting "DLL load failed: The specified procedure could not be found" when running in a .py file #593

Closed jharrychapman closed 4 years ago

jharrychapman commented 4 years ago

Issue Template

Please use this template!

Initial Check

If the issue is a request please specify that it is a request in the title (Example: [REQUEST] more features). If this is a question regarding 'twint' please specify that it's a question in the title (Example: [QUESTION] What is x?). Please only submit issues related to 'twint'. Thanks.

Make sure you've checked the following:

Command Ran

Please provide the exact command ran including the username/search/code so I may reproduce the issue.

import twint import asyncio import matplotlib.pyplot as plt import numpy as np import pandas as pd

Prevents error: no current event loop in thread

asyncio.set_event_loop(asyncio.new_event_loop())

Configuring Twint to search for the subject in the first specified city

c> = twint.Config()

Hiding the print output of tweets scraped

c.Hide_output = True

The amount of tweets to return sorted by most recent

c.Limit = 10

Input parameters

c.Search = 'pizza'

Removing retweets

c.Filter_retweets = True

No pictures or video

c.Media = False

English only

c.Lang ='en'

Excluding tweets with links

c.Links ='exclude'

twint.run.Search(c)

Description of Issue

Hello, I receive an ImportError "DLL load failed: The specified procedure could not be found." when I run the above code. The code works in Jupyter Notebook just fine. Do you know how to solve this issue?

Thanks

Environment Details

I am running this in Python via VSCode.

pielco11 commented 4 years ago

I think it's more a compatibility issue rather than an issue with Twint itself