Code Monkey home page Code Monkey logo

Comments (6)

flamechair avatar flamechair commented on July 22, 2024 1

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>
&registerId=<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.

ritiek avatar ritiek commented on July 22, 2024

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.

ritiek avatar ritiek commented on July 22, 2024

@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.

flamechair avatar flamechair commented on July 22, 2024

from trunofficial.

navanchauhan avatar navanchauhan commented on July 22, 2024

Can't we ask the user to supply the country code ?

from trunofficial.

ritiek avatar ritiek commented on July 22, 2024

@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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.