Newz_Shortie

所属分类:collect
开发工具:HTML
文件大小:0KB
下载次数:0
上传日期:2024-02-28 20:00:34
上 传 者sh-1993
说明:  新闻短片是一个网站,它将根据你喜欢的类型对新闻进行分类。新闻短小精悍,节省时间。
(News Shortie is a website which will sort the news based on the genre you like. The news are short, concise and time saving.)

文件列表:
__pycache__/
static/
templates/
LICENSE
app.py
poetry.lock
pyproject.toml
randomNiche.py
replit.nix
requirements.txt

![Photo](https://github.com/static/readme.jpeg) # Newz Shortie! Welcome to Newz Shortie! This Flask-based web application allows users to fetch news articles from the News API and view them based on their preferred genre. ## Website Link You can access the website at [https://newz-shortie.onrender.com/](https://github.comhttps://newz-shortie.onrender.com/) ## Features - **News Fetching**: Fetches news articles from the News API. - **Genre Selection**: Allows users to select their preferred news genre. - **Genre-based Display**: Displays news articles based on the selected genre. - **User-friendly Interface**: Simple and intuitive user interface for ease of use. ## Installation To run this project locally, follow these steps: 1. Clone the repository: ```bash git clone https://github.com/bandhan-majumder/Newz_Shortie.git ``` 2. Install dependencies: ```bash pip install -r requirements.txt ``` 3. Obtain a News API key from [newsapi.org](https://github.comhttps://newsapi.org/) and replace `"YOUR_API_KEY"` in `api_key.py` with your actual API key. 4. Create a file named api_key.py (in the directory where app.py is located) 6. Inside api_key.py , create a variable my_news_api_key = "PROVIDE YOUR KEY" 7. Run the Flask application: ```bash python app.py ``` 8. Access the website locally by visiting `http://localhost:5000` in your web browser. ## Usage 1. Visit the website. 2. Select a genre of interest. 3. View news articles from the chosen genre. ## Contributing Contributions are welcome! If you'd like to contribute to this project, please follow these steps: 1. Fork the repository. 2. Create your feature branch (`git checkout -b feature/YourFeature`). 3. Commit your changes (`git commit -am 'Add some feature'`). 4. Push to the branch (`git push origin feature/YourFeature`). 5. Open a pull request. ## Credits This project was created by [Bandhan Majumder](https://github.comhttps://github.com/bandhan-majumder). ## License This project is licensed under the MIT License. See the [LICENSE](https://github.comLICENSE) file for details.

近期下载者

相关文件


收藏者