Code Monkey home page Code Monkey logo

ig's Introduction

NOTE:

2018.04.12 Instagram introduced a lot of changes and blocked public access, not all endpoints work.

Build Status Maintainability Test Coverage Scrutinizer Code Quality

ig

Public, web api endpoints and content helpers

why?

Because I only need endpoints (and few helpers) not a complicated library with her limitations.

installation

composer require jakim-pj/ig

see in action

IG Monitoring - Free, self hosted Instagram Analytics and Stats

ig's People

Contributors

jakim avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ig's Issues

Troubles with cyrillic/utf8 tags

From email:

Tried to use your IGmonitoring system for accounts with cyrillic/utf8
tags... and had some troubles - the system skips to auto-add any tags
which consist of non-latin characters.

Some research shows that problem is here:

vendor/jakim-pj/ig/src/Text.php

class Text
{

    public static $usernamesPattern =
'/(?:@)([A-Za-z0-9_](?:(?:[A-Za-z0-9_]|(?:\.(?!\.))){0,28}(?:[A-Za-z0-9_]))?)/i';
    public static $tagsPattern =
'/(?:#)([\p{L}0-9_](?:(?:[\p{L}0-9_]){0,28}(?:[\p{L}0-9_]))?)/i';

after change to

public static $tagsPattern = '/#(\w+)/u';

seems to work more correct...

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.