Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitner committed Sep 6, 2020
1 parent 92025a6 commit 7f228c6
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 0 deletions.
68 changes: 68 additions & 0 deletions README.md
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.
31 changes: 31 additions & 0 deletions app.json
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": "/"
}
Binary file added static/newzery_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/trend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7f228c6

Please sign in to comment.