---
title: "Python Consulting for University of Sanya | Carlos Lastres"
description: "I was asked by the University of Sanya, to create a script to get all the news from a specific URL and then, get the keywords, summary, and general sentiment. Python is a beautiful"
url: https://lastres.ai/blog/python-consulting-for-university-of-sanya/
lang: en
---

Carlos Lastres 107 words

# Python Consulting for University of Sanya

I was asked by the University of Sanya, to create a script to get all the news from a specific URL and then, get the keywords, summary, and general sentiment.

Python is a beautiful and powerful language that is perfect for this task. I will be using Python 3.7.1 in Catalina for this project.

## Divide and Conquer

The URL provided was [http://people.com.cn/](http://people.com.cn/). When it comes to code, I always use “divide & conquer” to approach any problem. Therefore, my first task was, crawl, and get all the links from [http://people.com.cn/](http://people.com.cn/). For this, I used the libraries [**requests**](https://pypi.org/project/requests/) and [**bs4**](https://pypi.org/project/bs4/) ***....***

‍

Continue reading here [https://medium.com/@carloslastres/python-snownlp-sentiment-analysis-for-the-chinese-language-8d9cafd0447d](https://medium.com/@carloslastres/python-snownlp-sentiment-analysis-for-the-chinese-language-8d9cafd0447d)

[← All posts](https://lastres.ai/blog/)

---

Source: https://lastres.ai/blog/python-consulting-for-university-of-sanya/
Site index for agents: https://lastres.ai/llms.txt
