-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<h1 align="center">Welcome to Newzery 👋</h1> | ||
<p> | ||
<img alt="Version" src="https://img.shields.io/badge/version-1.0-blue.svg" /> | ||
<a href="https://github.com/rohitner/newzery/blob/master/LICENSE" target="_blank"> | ||
<img alt="License: GPLv3" src="https://img.shields.io/badge/License-GPL-blue.svg" /> | ||
</a> | ||
<a href="https://heroku.com/deploy?template=https://github.com/rohitner/newzery/tree/master"> | ||
<img src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy" height="20px"> | ||
</a> | ||
</p> | ||
|
||
|
||
> image : imagery : : news : newzery! | ||
<!-- ### 🏠 [Homepage](https://newzery.herokuapp.com/) --> | ||
|
||
### ✨ [Demo](https://www.youtube.com/watch?v=9hQ8bqcr1UQ) | ||
|
||
### 📝 Features | ||
|
||
- Convert any web article into a short video. | ||
|
||
- Video length of your choice. | ||
|
||
- End to end, send URL to the messenger bot, and get the video! | ||
|
||
### 💡 Motivation | ||
|
||
<div align="center"> | ||
<img src='static/trend.png' height='250px'> | ||
</div> | ||
|
||
Assuming that advertising revenue is a reasonable proxy for attention, it turns out that humans like pictures more than text, and moving pictures most of all; so it has gone on the Internet.[[source](https://stratechery.com/2020/the-tiktok-war)] | ||
|
||
### 🚀 Building | ||
|
||
- Clone this repository : `git clone https://github.com/rohitner/newzery`. | ||
|
||
- Install the dependencies : `pip install -r requirements.txt`. | ||
|
||
- Create a facebook page, add the messenger plugin to this page with your [developer account](https://developers.facebook.com/) to generate the access token. Save this token to `ACCESS_TOKEN` environment variable. | ||
|
||
- Download the [ngrok binary](https://ngrok.com/download) and run `./ngrok http 5000` | ||
|
||
- Save a string of your choice as `VERIFY_TOKEN` environment variable. | ||
|
||
- Run `python bot.py` | ||
|
||
- Configure the webhook: Enter the https URL of the ngrok forwarded port as the callback URL, and set verify token to the value in `VERIFY_TOKEN`. | ||
|
||
- Let the callback URL be verified, and you are ready to roll. | ||
|
||
## Author | ||
|
||
👤 **Rohit Ner** | ||
|
||
* LinkedIn: [@rohitner](https://linkedin.com/in/rohitner) | ||
* Github: [@rohitner](https://github.com/rohitner) | ||
* Twitter: [@rohitner](https://twitter.com/rohitner) | ||
|
||
## Acknowledgements | ||
|
||
- Hat tip to anyone whose code was used. | ||
|
||
## 📝 License | ||
|
||
Copyright © 2020 [Rohit Ner](https://github.com/rohitner).<br /> | ||
This project is [GPL](https://github.com/rohitner/newzery/blob/master/LICENSE) licensed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "Newzery Demo", | ||
"description": "Article2Video messenger bot", | ||
"repository": "https://github.com/rohitner/newzery", | ||
"logo": "https://github.com/rohitner/newzery/blob/master/static/newzery_icon.png", | ||
"keywords": [ | ||
"python", | ||
"flask", | ||
"moviepy", | ||
"messenger" | ||
], | ||
"buildpacks": [ | ||
{ | ||
"url": "https://github.com/DuckyTeam/heroku-buildpack-imagemagick" | ||
}, | ||
{ | ||
"url": "heroku/python" | ||
} | ||
], | ||
"env": { | ||
"ACCESS_TOKEN": { | ||
"description": "Acess token of facebook page.", | ||
"value": "ENTER_YOUR_TOKEN_HERE_LATER" | ||
}, | ||
"VERIFY_TOKEN": { | ||
"description": "Verify token for webhook.", | ||
"value": "NEWZTOKEN" | ||
} | ||
}, | ||
"success_url": "/" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.