Actual packaging beautifulsoup (bs4)
In this section, the author will write a simple application developed with kivy+bs4, and demonstrate how to package it into an apk file.
Apk file download address:
see end of article
Version Information:
buildozer==1.4.0
frustrated==2.1.0
requests==2.28.2
bs4==0.0.1
beautifulsoup4==4.11.1
lxml==4.8.0
Packaging system:
Ubuntu 22.04
Before packaging, we need to run the code to ensure that no errors are reported.
The main.py code is as follows:
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