GithubHelp home page GithubHelp logo

column-st / instahashtag Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 518 KB

๐Ÿ“ธ Unofficial Python API wrapper for DisplayPurposes.

Home Page: https://column-st.github.io/InstaHashtag/

License: MIT License

Python 100.00%
python displaypurposes api instagram hashtag instagram-hashtag

instahashtag's People

Contributors

synchronizing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

instahashtag's Issues

Getting error with simple example code from docs

Hello!

Is this repo's code still up to date with the API or do I miss some package? I get an error but I am not sure what's going on.

I'm getting the error below, when testing with an example from your docs. My example code is this:

from instahashtag import api

def io():
    """Uses 'requests' to send requests."""

    tag = api.tag(hashtag="instagram")
    graph = api.tag(hashtag="instagram")
    maps = api.maps(
        x1=-80.48712034709753,
        y1=25.750749758162012,
        x2=-79.82794065959753,
        y2=25.854604964203453,
        zoom=12,
    )

io()

The error is the following:

Traceback (most recent call last):
  File "/Users/michael.Steudter/Documents/pythonExperiments/displaypurposes/test.py", line 16, in <module>
    io()
  File "/Users/michael.Steudter/Documents/pythonExperiments/displaypurposes/test.py", line 6, in io
    tag = api.tag(hashtag="instagram")
  File "/Users/michael.Steudter/Documents/pythonExperiments/displaypurposes/venv/lib/python3.9/site-packages/instahashtag/api.py", line 43, in tag
    return http.Requests.tag(hashtag=hashtag)
  File "/Users/michael.Steudter/Documents/pythonExperiments/displaypurposes/venv/lib/python3.9/site-packages/instahashtag/http.py", line 103, in tag
    return obj.call()
  File "/Users/michael.Steudter/Documents/pythonExperiments/displaypurposes/venv/lib/python3.9/site-packages/instahashtag/http.py", line 133, in call
    return self.process(resp)
  File "/Users/michael.Steudter/Documents/pythonExperiments/displaypurposes/venv/lib/python3.9/site-packages/instahashtag/http.py", line 93, in process
    return json.loads(resp)
  File "/Applications/Xcode_14_1.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/Applications/Xcode_14_1.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Applications/Xcode_14_1.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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.