《Buildozer打包实战指南》实战打包beautifulsoup (bs4)
Posted la_vie_est_belle
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了《Buildozer打包实战指南》实战打包beautifulsoup (bs4)相关的知识,希望对你有一定的参考价值。
实战打包beautifulsoup (bs4)
在本节,笔者会编写一个用kivy+bs4开发的简单应用,并演示如何将其打包成apk文件。
apk文件下载地址:
请看文章末尾
版本信息:
buildozer==1.4.0
kivy==2.1.0
requests==2.28.2
bs4==0.0.1
beautifulsoup4==4.11.1
lxml==4.8.0
打包系统:
Ubuntu 22.04
打包前我们需要运行下代码,确保没有报错。
main.py代码如下:
import requests
from bs4 import BeautifulSoup
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
class RootWidget(BoxLayout):
def __init__(self):
super(RootWidget, self).__init__()
self.label = Label()
self.button = Button(text="Get Web Title")
self.button.b
以上是关于《Buildozer打包实战指南》实战打包beautifulsoup (bs4)的主要内容,如果未能解决你的问题,请参考以下文章