每天推薦一個 GitHub 優質開源項目和一篇精選英文科技或編程文章原文,歡迎關注開源日報。交流QQ群:202790710;電報群 https://t.me/OpeningSourceOrg


今日推薦開源項目:《用 Toapi 為任何網站添加api服務》

推薦理由:Toapi是一個能夠為任何網站添加api服務的python項目,通過我們所添加的api,我們可以輕鬆的獲取我們的想要的信息,功能類似與爬蟲,相比於其他的爬蟲,它最大的特點就是可以自動實時更新。

開源周報第1期:GitHub Trending 丁酉年叱吒開源項目風雲榜

工作流程:

1.使用相同的url向源web站點發送一個請求

2.獲取從緩存和存儲獲取的大部分數據

3.當緩存過期時,從存儲中獲取HTML

4.當存儲過期時,從源站點獲取HTML

開源周報第1期:GitHub Trending 丁酉年叱吒開源項目風雲榜

toapi的特點:

toapi使用緩存來防止重複解析網站並運用儲存防止重複發送請求

  1. toapi可以同時收集多個頁面的信息
  2. 通過toapi創建的api可以共享給其他人
  3. 由於toapi是由flask框架構建的,所以它有很大的拓展空間,易於更新
  4. toapi構建的api可以自動判斷自身的狀態,我們可以隨時調用它們

官方文檔


今日推薦英文原文:《Linux Apps Are Coming to Chromebooks and You Can Try Them Right Now, Here’s How》

作者: Marius Nestor

原文鏈接:https://news.softpedia.com/news/linux-apps-are-coming-to-chromebooks-and-you-can-try-them-now-in-chrome-os-dev-520966.shtml

推薦理由:沒錯,Chromebooks 除了可以支持 Chome 瀏覽器擴展、Android App 之外,現在又可以支持 Linux App 了,可以說是越來越強大了。

Linux Apps Are Coming to Chromebooks and You Can Try Them Right Now, Here’s How

Rumored to come to a Chromebook near you, support for Linux apps just entered beta testing in the latest Chrome OS Dev channel, as confirmed by Kevin Tofel of About Chromebooks. The feature appeared in the Settings and needed to be turned on if you want to use Linux tools, editors, and IDEs on your Chromebook.

The first sign of Linux app support in Chrome OS appeared two months ago when a Reddit user discovered a Chromium Gerrit commit explaining a new device policy designed to allow containerized Linux apps to Chromebooks. Then, someone discovered a Terminal app, whichfailed to install, but suggested upcoming support for Linux apps.

Here’s how to try Linux apps on your Chromebook

Now that the feature is finally accessible to the masses, you can try Linux apps on your Chromebook by switching to the Chrome OS Dev channel. To do that, access the Chrome OS Settings, scroll down on the left side panel list and click on “About Chrome OS,” then click on “Detailed build information,” click “Change channel” next to “Channel,” and choose the Developer channel.

Click “Change Channel” to change the channel and apply the settings. Chrome OS will then automatically download an update to your Chromebook and ask you to restart. Once you’re back on the desktop, open the Chrome OS Settings again, go to “About Chrome OS” and make sure you’re running at least Chrome OS 68.0.3416.0. Go back and turn on Linux (Beta) feature under the Linux Apps section.

Once you enable the Linux Apps feature, your Chromebook will apparently start downloading the Terminal app, which says that you’re running the Debian GNU/Linux operating system in a container. However, be aware the support for native Linux apps might need some work before it’s ready for the masses, so use it with caution until it lands in the Chrome OS Stable channel.


每天推薦一個 GitHub 優質開源項目和一篇精選英文科技或編程文章原文,歡迎關注開源日報。交流QQ群:202790710;電報群 https://t.me/OpeningSourceOrg