Git Product home page Git Product logo

Comments (6)

Sebsebzen avatar Sebsebzen commented on August 22, 2024

Hi, is it possible to search for GEO coordinates yet?

from instagrapi.

adw0rd avatar adw0rd commented on August 22, 2024

location_search - by coordinates https://github.com/adw0rd/instagrapi/blob/master/instagrapi/location.py#L10
More examples here - https://github.com/adw0rd/instagrapi/blob/master/tests.py#L798

from instagrapi.

jhd3197 avatar jhd3197 commented on August 22, 2024

@adw0rd
I ran into an issue when I was adding locations to (photo_upload) it's picking always a different location and it's because the function (location_info) doesn't return Location.external_id and this force the function (location_build) to do a location_search base on the lat and lng so this causing the locations to be wrong most of the time or not perfect here is and example of location_search_pk and location_info

`from instagrapi import Client
import sys
import json

cl = Client()

loc=cl.location_info(319703195161335)
print(loc)

loc1=cl.location_search_pk(319703195161335)
print(loc1)`

image

I also added the function location_search_name(name) example

`from instagrapi import Client
import sys
import json

cl = Client()

locs=cl.location_search_name("caracas")
print(locs)
`
return

image

Here is the fork with the changes
jhd3197@df025a1

Best hope this can help

from instagrapi.

adw0rd avatar adw0rd commented on August 22, 2024

@jhd3197 You ran tests?

from instagrapi.

jhd3197 avatar jhd3197 commented on August 22, 2024

@adw0rd
I did and I got this:

image

but I don't know how to debug this or how to check if those errors are coming from this change I also try testing this repository without making any change and I always get a login issue when I'm trying to test with docker even when I know the password it's correct

image

from instagrapi.

adw0rd avatar adw0rd commented on August 22, 2024

Added FbSearchMixin.fbsearch_places:

>>> cl.fbsearch_places('New York')[0].dict()
{'pk': 486560663,
 'name': 'New York City, N.Y.',
 'phone': '',
 'website': '',
 'category': '',
 'hours': {},
 'address': None,
 'city': None,
 'zip': None,
 'lng': -74.005891084671,
 'lat': 40.712701423445,
 'external_id': 267185200114218,
 'external_id_source': 'facebook_places'}

from instagrapi.

Related Issues (20)

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.