Git Product home page Git Product logo

Comments (15)

liayn avatar liayn commented on June 23, 2024

Sounds reasonable.

from shariff-backend-php.

craiq avatar craiq commented on June 23, 2024

whats about https://dev.twitter.com/rest/reference/get/search/tweets ?
search for the url as the query string.
Just oauth is needed, but zend framework has support for the twitter oauth.

Edit: gives max 100 tweets back... with content and meta stuff
with 450 searches per 15min you can check for up to 45k tweets.
This should be enough for most pages but generates a huge amount of traffic

from shariff-backend-php.

startef avatar startef commented on June 23, 2024

The rest api search is limited to the last 7 days. You would have to search for the url, count the results and record the timestamp you searched and store both permanently somewhere (not in the cache). When you search a second, third, and so on time you use the timestamp to determine if a result is new and then add the amount of new results to the stored amount.

Of course this will only work for new urls. Everything that happened prior to the new system cannot be counted, so all old posts, entries, news, whatever will be zero.

http://opensharecount.com basically did exactly this, as I understood it, and provide it as a service in the old Twitter api style. Unfortunately they don't seem all too trustworthy to me. If you want to use that service for yourself (or if anyone else does), I would STRONGLY recommend to NOT use your real Twitter account for it and to NOT provide any real information while registering with this service as well as with Twitter. Just create a another Twitter account with a trash mail address and then registered with that account on opensharecount.com. They gain access to everything on that account and even can tweet in your name!

Because of all these reasons, I haven't decided yet, if I really want to add it to our WordPress plugin version of Shariff. I'm really interested though in other peoples opinions about this.

The only real way to get accurate share counts now is to pay 5000 Euros and more per month to Twitter for their Gnip apis. Don't think anybody is going to do that for some share count buttons.

from shariff-backend-php.

craiq avatar craiq commented on June 23, 2024

or you use this:
https://twittercommunity.com/t/is-http-urls-api-twitter-com-1-urls-count-json-a-valid-way-to-get-the-tweet-count-for-a-url/13369
but this don't fit to the shariff backend as it is
there might be services on base of this soon.

from shariff-backend-php.

startef avatar startef commented on June 23, 2024

Did you accidentally post the wrong link or did I overlook something? The link describes the old api endpoint that Twitter just retired.

from shariff-backend-php.

craiq avatar craiq commented on June 23, 2024

the second and fourth post.
that you need to calculate the count yourself while getting streamed every tweet that fits the search string.
https://dev.twitter.com/streaming/reference/post/statuses/filter

from shariff-backend-php.

startef avatar startef commented on June 23, 2024

Ah, got it. Well, like you said nothing that really fits to Shariff. Way to much traffic and you need a single account for every domain, otherwise you will run into the limits way too quickly. Maybe there will be other services like OpenShareCount in the future that are more "open" and less fishy.

from shariff-backend-php.

compeak avatar compeak commented on June 23, 2024

Twitter will be removed from the backend as soon as flattr fixes their API and Travis successfully builds this pull request.

from shariff-backend-php.

Tinendo avatar Tinendo commented on June 23, 2024

The only real way to get accurate share counts now is to pay 5000 Euros and more per month to Twitter for their Gnip apis. Don't think anybody is going to do that for some share count buttons.

  • startef

So, no Twitter Share Counts for 'us' in the future?

from shariff-backend-php.

liayn avatar liayn commented on June 23, 2024

@Tinendo No! We have to except it. It does not help to cry after it, it's a free service, they can do what they like to do.
@compeak I already prepared the patch locally, shall I create a PR or will you do it on your own?

from shariff-backend-php.

compeak avatar compeak commented on June 23, 2024

@liayn I did it in #48. Please have a look at it and tell me if I missed something.

from shariff-backend-php.

liayn avatar liayn commented on June 23, 2024

@compeak Oh, thanks for the hint, I missed that completely. Looks good. Can you release that asap, so I can release a new version of the TYPO3 Extension?
(I will come up with another PR for the composer.json in a minute)

from shariff-backend-php.

compeak avatar compeak commented on June 23, 2024

Twitter has been removed from all backends.

from shariff-backend-php.

stefahn avatar stefahn commented on June 23, 2024

Took me some time to find this thread and learn that Twitter counts (unfortunately) are no longer available.

I suggest that this information is added to the README.md so other users don't wonder why Twitter is missing in the "Supported services". Should I add a sentence to README.md?

from shariff-backend-php.

compeak avatar compeak commented on June 23, 2024

@stefahn: No. The README clearly states which services are supported and is bundled with every release.

from shariff-backend-php.

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.