• Stars
    star
    222
  • Rank 179,123 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Unofficial API of Inshorts written in Flask

Inshorts News API [Unofficial]


This API is capable of fetching news contents from various sources as gathered by Inshorts app.


Show some ❀️ and ⭐ the repo to support the project

GitHub stars

Twitter Follow

GitHub followers

Telegram Channel


News Categories

This API supports category wise news. Here is a complete list of all categories.

  1. all
  2. national //Indian News only
  3. business
  4. sports
  5. world
  6. politics
  7. technology
  8. startup
  9. entertainment
  10. miscellaneous
  11. hatke
  12. science
  13. automobile

Usage

Make a get request specifying the category of news you want

https://inshorts.deta.dev/news?category={category_name}

Example - https://inshorts.deta.dev/news?category=science


Response Format

The response JSON Object looks something like this -

{
  "category": "technology",
  "data": [
    {
      "author": "Pragya Swastik",
      "content": "American actor Aaron Paul, who portrayed Jesse Pinkman in 'Breaking Bad', revealed that he uses a 'credit card-sized dumb phone' that cannot store any apps and can only make calls and send texts. \"There's no camera or emailing,\" Paul said, adding that he's planning to buy a flip phone. \"I haven't owned a computer in over 10 years,\" he added.",
      "date": "15 Mar 2020,Sunday",
      "imageUrl": "https://static.getinpix.com/public/images/v1/variants/jpg/m/2020/03_mar/15_sun/img_1584273701082_423.jpg",
      "readMoreUrl": "https://www.dailymail.co.uk/tvshowbiz/article-8111761/Breaking-Bad-star-Aaron-Paul-reveals-owned-computer-decade-prefers-FLIP-PHONE.html?utm_campaign=fullarticle&utm_medium=referral&utm_source=inshorts ",
      "time": "06:17 pm",
      "title": "\nI use a 'dumb phone' that only makes calls & sends texts: 'Breaking Bad' actor\n",
      "url": "https://www.inshorts.com/en/news/i-use-a-dumb-phone-that-only-makes-calls-sends-texts-breaking-bad-actor-1584276455594"
    },
    {
      "author": "Pragya Swastik",
      "content": "Google recently shared five basic protective measures against coronavirus that can be followed by people worldwide. These include washing hands often, coughing into the elbow, not touching the face, staying over three feet apart from others and staying at home on feeling sick. Google engineers are also building a website to screen potential coronavirus patients in the US.",
      "date": "16 Mar 2020,Monday",
      "imageUrl": "https://static.getinpix.com/public/images/v1/variants/jpg/m/2020/03_mar/15_sun/img_1584292734587_739.jpg",
      "readMoreUrl": "https://twitter.com/Google/status/1238893403821113344?s=20&utm_campaign=fullarticle&utm_medium=referral&utm_source=inshorts ",
      "time": "07:00 am",
      "title": "\nGoogle shares 5 basic protective measures against coronavirus\n",
      "url": "https://www.inshorts.com/en/news/google-shares-5-basic-protective-measures-against-coronavirus-1584322241969"
    }
    ],
  "success": true
}

Setup

Install all dependencies listed in requirements.txt file.

  1. To install all dependencies run -

    $ sudo -H pip3 install -r requirements.txt
  2. Start the server

    $ python app.py

Apps using this API

Telegram Channel of Inshorts News

Telegram Channel

You can fork the repo and deploy on VPS, Heroku or Vercel :)

Deploy

Deploy to Vercel


⭐ the Repo in case you liked it :)

Made with ❀️ in India

Β© Sumanjay

More Repositories

1

JioSaavnAPI

An unofficial API for JioSaavn written in Python 3
Python
360
star
2

Carbon-API

Unofficial API for generating beautiful images of your source code using Carbon.
Python
190
star
3

APIs

This Repository contains link to many Open or Closed Source APIs which I've made
145
star
4

GaanaAPI

Unofficial Gaana API
Python
113
star
5

Gdrivedownloader

Just enter the direct URL of the file and it will upload it to Google Drive and print download link of it.
Python
93
star
6

upayi

Create shareable links for your UPI ID
HTML
58
star
7

TorrFlix

A simple torrent streamer written in python.
Python
57
star
8

UdemySales

Android App for grabbing paid Udemy courses for free during sales using coupon codes
Dart
51
star
9

Torrent-Searcher

[DEPRECATED] A simple torrent file searcher written in Python
Python
37
star
10

InstaFlask

A flask app to fetch Instagram Profile details, get downloadable High Definition DP/Photos/Videos of users from link.
HTML
35
star
11

RealTimeCryptoPrice

Plots Real-Time Crypto Currency Price
HTML
30
star
12

pw

Best websites a Programmer should visit
HTML
28
star
13

JioMusicAPI

[Deprecated] An unofficial API for JioMusic written in Python 3
Python
28
star
14

ocrbot

Optical Character Recognition (OCR) implementation in Telegram Bot
Python
20
star
15

CourierAPI

API for getting tracking updates of Courier Service Providers
Python
17
star
16

click2whatsapp

Click to chat with unsaved WhatsApp Number.
CSS
12
star
17

torrent

Unblocked Torrent Sites
CSS
11
star
18

VoiceAssistant

Python Project
Python
7
star
19

CashbackCardComparisonTool

A tool to compare cashbacks provided by various cashback cards
JavaScript
7
star
20

Telegram-ChatBot

A chat bot for Telegram based on Chatterbot
Python
7
star
21

jsonproxy

[Deprecated] List of Indian Proxies updated every 15 mins.
Python
5
star
22

web

This contains add-ons for my website
JavaScript
4
star
23

tgsubsapi

Telegram Live Subs API
Python
4
star
24

cyberboysumanjay

3
star
25

BinanceFuturesBalanceDashboard

Get realtime Binance Futures Wallet Details
JavaScript
3
star
26

AI-Training

Jupyter Notebooks and other files used in AI Training
Jupyter Notebook
3
star
27

evaluator

Automated Evaluation of Answers using ML
HTML
2
star
28

additional_files

2
star
29

chat-ui

Open source chat widget UI
CSS
2
star
30

python-codes

All Source Codes of the Python HP Summer Training.
Python
2
star
31

storage

Solution for uploading and downloading Files. This helps in uploading and downloading files from my Google Drive without logging in!
CSS
1
star
32

Semester6

NIT Delhi Lab Works of Semester 6
C
1
star
33

C-Assignments

This Repo contains all my Assignments of Computer Science
C
1
star
34

Java-Practice-Codes

This repo will contains my mayNucleus assignment codes
Java
1
star
35

Semester4

Lab works
C++
1
star
36

TOAD

Theory of App Development Course Codes
Java
1
star
37

NetworkSecurityLab

Lab works for Network Security Lab
Python
1
star
38

satish

Portfolio of Pappu
CSS
1
star