Comments (6)
Hi, I've done some research and was able to extract the following parameters:
q=<Number to search for>
&countryCode=US
&type=4
&locAddr=
&placement=SEARCHRESULTS,HISTORY,DETAILS
&adId=<Unique ID>
&clientId=1
&myNumber=<Another Unique ID>
®isterId=<Unique Number>
&encoding=json HTTP/1.1
This might be cause by missing the countryCode
parameter, as the number I searched for was a US number.
from trunofficial.
This is probably happening due to the request parameters being used in here. I'll do some more testing to see if this can be fixed but I can't say for sure.
from trunofficial.
@iamtpage You're right. I removed the countryCode
assuming Truecaller would automatically figure that out. I am still confused why it would default to some country (that too my home country haha) instead of returning a bad response. I'll make a fix for this soon!
from trunofficial.
from trunofficial.
Can't we ask the user to supply the country code ?
from trunofficial.
@navanchauhan Yep, I added this in release v0.2.3 with 23eb940.
trunofficial.search(123456789)
will now set defaults to the country you are making requests from.
trunofficial.search(123456789, cc="US")
will pass the country code for US.
$ trunofficial 123456789 -c US
for command line usage.
I guess this can be closed now.
from trunofficial.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trunofficial.