MarioVilas / googlesearch

Google search from Python (unofficial).
BSD 3-Clause "New" or "Revised" License
1.15k stars 393 forks source link

Exception on non-comma thousand separator present in the hints number #60

Closed remohammadi closed 6 years ago

remohammadi commented 6 years ago

While using the library in the Netherlands, I got a ValueError here because Google returns the hits in nl local even when I have tld='com', lang='en' in the list of the arguments passed to hits function.

The exception I got

ValueError: invalid literal for int() with base 10: '672.000'

The related code

https://github.com/MarioVilas/googlesearch/blob/42ee4ac5563bce028f2281dc2a19ec471dbc05e0/googlesearch/__init__.py#L735