Week 2: Creating and Hosting a Website

In this week, we mainly learned how to go about creating your own website and try to write the basic code. We started by using cPanel to activate our website and using Visual Studio Code to write simple title, header, and paragraph code. In class, I tried to create my own website and designed a simple webpage with lemon yellow for the background and navy blue for the text (but it was accidentally deleted after class...).

Here is the initial code I wrote that worked successfully after some complex debugging.

Therefore, I try to use this template, because it is more logical, clearer, and contains more complex code, and I can learn and practice more code logic and operation methods in the process of rewriting and using it.

Week 3: Web Scraping

Practice

In the end, I chose to use WebScraper.io as the scraping tool. After inserting the plug-in, you can quickly open the tool on the page through the "view-creator-creator tool" on the toolbar. Then click "web scrape" to enter the page, and enter the selection of scraping objects by "create new sitemap-create sitemap". The "add new selector" button can be used to complete the selection and export it to a more readable Excel format after scraping the page. For example, the selected data can not be crawled, after asking the teacher and repeatedly trying to get the answer: the page I am on and the entered URL must be consistent, and should not leave the page during the crawling process.

Outcomes

After much trial and error, I finally exported data that I have scraped the data. This is the article title and its link displayed on the oldreddit web page, displayed in an Excel spreadsheet.