Developed by: Team Yes
Created by: Adrien Bekker and Vijay Sreenivasan
We were inspired by the variety of news sources, and we wanted to create an application which avoids bias and covers a wide range of topics. As a result, we decided to create Insight, an app that allows the user to choose an article based on what subject they want.
We divided our app into four sections: General, Positivity, Science and Technology, Entertainment.
Learning and Building
We learned how to use Selenium to webscrape news articles, create a Python API, build a React-Native GUI, and connect a Python back-end to a React-Native front-end. All of the webscraping is done in Python and it uses a tool called Selenium, which provides a library for webscraping. The application Postman was used to test the webscraping API before it was connected to the front-end. The front-end was created using React-Native and Expo.io. We used Snack and Visual Studio Code for development.
Early in development, we had trouble connecting the front-end and back-end. This is because the fetch() function in React-Native was running asynchronously, so the program would not wait to receive the webscraped articles from the Python code. We fixed this by created an asynchronous function and creating a state function to check whether or not all of the components were scraped yet.