https://github.com/moazirfan/node.js-technology-news-api
Node.js application that fetches technology news articles from various sources.
https://github.com/moazirfan/node.js-technology-news-api
express nodejs scrapping
Last synced: 3 months ago
JSON representation
Node.js application that fetches technology news articles from various sources.
- Host: GitHub
- URL: https://github.com/moazirfan/node.js-technology-news-api
- Owner: MoazIrfan
- Created: 2023-10-05T17:25:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-06T06:35:16.000Z (over 1 year ago)
- Last Synced: 2024-05-18T03:50:15.356Z (about 1 year ago)
- Topics: express, nodejs, scrapping
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Technology News API
Technology News API is a simple Node.js application that provides an API to fetch technology news articles from various sources. It uses Express.js for building the API and Axios with Cheerio for web scraping.
## To run this project
You can run this project on your local machine. Just pull it down and do the following:
```bash
npm install
```1. Run the command above to install all the packages
### Start the Project
2. Now run the server:
```bash
npm run start
```3. Open [http://localhost:8000/news](http://localhost:8000/news) with your browser to see the results of the scrape in your terminal.
4. You can also use certain source parameters to get news from individual sources. i.e. [http://localhost:8000/news/nyt](http://localhost:8000/news/nyt)
5. Install the Chrome extension 'JSON Viewer' to view returned JSON in the right format.
## MIT Licence
Copyright (c) 2020 Moaz Irfan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.