UNPKG

twitter-helper

Version:

Allows to fetch data from Twitter without using its API. Does not require any authentication.

38 lines (36 loc) 1.21 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="width=device-width, initial-scale=1" name="viewport"> <title>TwitterHelper by sunpietro</title> <style> body { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 1rem; line-height: 1.25; } </style> <!-- <script src="src/twitterHelper.js" type="text/javascript"></script> --> <script src="twitterHelper.min.js" type="text/javascript"></script> </head> <body> <header> <h1>TwitterHelper by Sunpietro - demo</h1> <aside> <a href="https://github.com/sunpietro/twitterHelper">Sunpietro TwitterHelper on Github.com</a> </aside> </header> <div id="output"></div> <script> (function () { const callback = event => { document.getElementById('output').innerHTML = JSON.stringify(event.detail.tweetsData); }; document.body.addEventListener('tweetsByUsernameFetched', callback, false); twitterHelper.getTweetsByUsername('sunpietro'); })(); </script> </body> </html>