Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Having problem with c.Search command #12

Open
AhsanMollani opened this issue Jun 9, 2023 · 2 comments
Open

Having problem with c.Search command #12

AhsanMollani opened this issue Jun 9, 2023 · 2 comments

Comments

@AhsanMollani
Copy link

AhsanMollani commented Jun 9, 2023

import twint
import nest_asyncio
c = twint.Config()
nest_asyncio.apply()
c.Search = "dementia"
c.Since = '2015-01-17 00:00:00'
c.Until = '2025-03-17 00:00:00'
c.Limit = 1
c.Pandas = True
c.Store_json = True
c.Output = 'ahsan.json'
twint.run.Search(c)

Hi, I am trying to run the c.Search i am getting the error below :

Whenever I am using c.Username instead of c.Search, the code works fine.


  File "C:\Users\Ahsan Mollani\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\yarl\_url.py", line 982, in <genexpr>
    quoter(k) + "=" + quoter(self._query_var(v)) for k, v in query
                             ^^^^^^^^^^^^^^^^^^
  File "C:\Users\Ahsan Mollani\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\yarl\_url.py", line 946, in _query_var
    raise TypeError(
TypeError: Invalid variable type: value should be str, int or float, got None of type <class 'NoneType'>

If someone can help me out thanks

@yihong0618
Copy link
Owner

twitter ban search api

@AhsanMollani
Copy link
Author

Ohh, thank you for this information. Is there any possibility we can get the data through keywords. I am stuck with my research work because of this :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants