Coder Social home page Coder Social logo

social-rss's Introduction

Social RSS

Read your social networks timeline in different formats (RSS, JSON).

Social RSS fully parses API data including avatars, quotes, photos, videos, hashtags, user mentions and urls.

You can read your own timeline as well as user's timelines.

Build Status Scrutinizer Code Quality Code Climate Issue Count Test Coverage

Supported networks / screenshots

Twitter (source post)

Twitter

VK

Screenshots made in NewsBlur RSS reader.

Output formats

  • RSS 2.0
  • JSON

Requirements

  • PHP >= 7.2
  • Composer

Installation

$ git clone https://github.com/andr-andreev/social-rss.git
$ cd social-rss
$ make install

Configuration

Copy .env.example to .env and configure it as seen below.

$ cp .env.example .env

Twitter

  1. Create an application: https://apps.twitter.com/app/new
  2. Go to Keys and Access Tokens tab. Press Create my access token button at the bottom of the page
  3. Save Consumer Key, Consumer Secret, Access Token and Access Token Secret to .env

VK

  1. Create an standalone application: https://vk.com/editapp?act=create
  2. Go to Settings tab
  3. Open https://oauth.vk.com/authorize?client_id={APP_ID}&scope=wall,friends,offline&redirect_uri=http://oauth.vk.com/blank.html&response_type=code and allow access to your account. You will be redirected to https://oauth.vk.com/blank.html#code={CODE}
  4. Open https://oauth.vk.com/access_token?client_id={APP_ID}&client_secret={API_SECRET}&code={CODE}&redirect_uri=http://oauth.vk.com/blank.html. Save access_token to .env

Usage

Configure your webserver, assuming ./web/ is public-accessible directory.

To view your own timeline in default (RSS) format:

http://example.com/feed/{source}

To view user timeline in default (RSS) format:

http://example.com/feed/{source}?username={username}

To specify another format:

http://example.com/feed/{source}?output={format}

where {source} is twitter or vk and {format} is rss or json

Tests

You can run the test suite:

$ make test

Disclaimer

Please note that using this script may be against social networks Terms of Service.

social-rss's People

Contributors

andr-andreev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.