Scweet icon indicating copy to clipboard operation
Scweet copied to clipboard

'geocode' is an unexpected argument

Open nrsmac opened this issue 2 years ago • 3 comments

Hi there,

Great tool -- just switched over from twint. One crucial task for my work is gathering tweets from specific cities, but I am running into some difficulty. I am running the example:

             since="2021-10-01", 
             until="2021-10-05",
             from_account = None,
             interval=1,
             limit=10,
             headless=False,
             display_type="Top",
             save_images=False,
             lang="en",
             resume=False, 
             filter_replies=False, 
             proximity=False, 
             geocode="77.23149,28.65195,100km"
            )

which returns:

TypeError                                 Traceback (most recent call last)
/var/folders/83/w893h4gs1l9__501cqrk03lc0000gn/T/ipykernel_84555/624999764.py in <module>
      3 
      4 
----> 5 data = scrape(words=['bitcoin'], 
      6               since="2021-10-01",
      7               until="2021-10-05",

TypeError: scrape() got an unexpected keyword argument 'geocode'

Without the geocode argument, everything works just fine. Has the argument name been changed or will this need a patch?

Thanks

nrsmac avatar Dec 31 '21 22:12 nrsmac

Hi, he library needs to be updated. I will see if I can do it asap. Otherwise you can clone the repo and use it instead of inporting Scweet from pip

Altimis avatar Dec 31 '21 22:12 Altimis

Hi, he library needs to be updated. I will see if I can do it asap. Otherwise you can clone the repo and use it instead of inporting Scweet from pip

Thanks for the quick reply! No rush -- won't be able to work on this anymore until Monday anyways.

nrsmac avatar Dec 31 '21 22:12 nrsmac

@nrsmac you can check now

Altimis avatar Jan 03 '22 17:01 Altimis