Closed lukaspistelak closed 3 years ago
Duplicate of #75. You need Python 3.8.
ok, but my project depends on cca 100 libs in python 3.6.9 , so you can imagine how many libs i cant use ..... can u change it please? for 3.6.9
Sorry, snscrape depends on a feature that is only available since Python 3.8.
If you want, you can try to patch snscrape. This error is the only 3.8 dependency at the moment, so you can probably get away with using @property
instead of @functools.cached_property
as long as you don't access the entity multiple times. However, expect more things to break in the future as the code will depend more and more on new language features over time.
What you mean exactly access the entity multiple times ?, i Run the Twitter search Class in thread, But in every thread I initialize The your Twitter Search Method
TwitterUserScraper
has an entity
attribute that provides information on the user. This information is cached, and the retrieval is implemented with that in mind, i.e. that the underlying method is not called more than once. If you use @property
instead of @functools.cached_property
, that guarantee is broken.
If you only use the TwitterSearchScraper
or do not access the entity
(more than once per scraper instance), it is safe to replace it.
THE OS : ubuntu 18.04
but the version from pip works 0.3.4 !