Jamie 发布的文章

抓取用户信息

https://www.iesdouyin.com/web/api/v2/user/info/?unique_id={unique_id} 

演示链接 - 记录生活的蛋黄派 -link

https://www.iesdouyin.com/web/api/v2/user/info/?sec_uid={sec_uid} 

演示链接 - 记录生活的蛋黄派 -link

接口相关参数

aweme_count # 作品数
following_count # 关注数
total_favorited # 获赞数
mplatform_followers_count # 粉丝数
enterprise_verify_reason # 用户名称
url_list # 用户头像列表

相关软件应用

  1. 集简云 -link

一个PyQt6 界面代码
截屏2023-05-03 00.51.27.png
截屏2023-05-03 00.51.55.png

from PyQt6.QtWidgets import QApplication, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QComboBox, QCheckBox, QPushButton, QListWidget

class MyWindow(QWidget):
    def __init__(self):
        super().__init__()

        self.setWindowTitle("Web Title")
        self.setFixedWidth(350)

        self.layout = QVBoxLayout(self)

        self.row1 = QHBoxLayout()
        self.label1 = QLabel("Name: ")
        self.label1.setFixedWidth(40)
        self.textbox1 = QLineEdit()
        # self.textbox1.setFixedWidth(100)
        self.row1.addWidget(self.label1)
        self.row1.addWidget(self.textbox1)

        self.row2 = QHBoxLayout()
        self.label2 = QLabel("Pass: ")
        self.label2.setFixedWidth(40)
        self.textbox2 = QLineEdit()
        # self.textbox2.setFixedWidth(100)
        self.row2.addWidget(self.label2)
        self.row2.addWidget(self.textbox2)

        self.row3 = QHBoxLayout()
        self.dropdown = QComboBox()
        self.dropdown.addItems(["Option 1", "Option 2", "Option 3", "Option 4"])
        self.checkbox = QCheckBox("Check me")
        self.button = QPushButton("Click me")
        self.row3.addWidget(self.dropdown)
        self.row3.addWidget(self.checkbox)
        self.row3.addWidget(self.button)

        self.listbox = QListWidget()

        self.layout.addLayout(self.row1)
        self.layout.addLayout(self.row2)
        self.layout.addLayout(self.row3)
        self.layout.addWidget(self.listbox)

        self.button.clicked.connect(self.on_button_click)

    def on_button_click(self):
        selected_option = self.dropdown.currentText()
        checked_state = self.checkbox.isChecked()

        self.textbox1.setText(selected_option)
        self.textbox2.setText(str(checked_state))

        self.listbox.addItem("Dropdown Selection: " + selected_option)
        self.listbox.addItem("Checkbox Status: " + str(checked_state))


if __name__ == "__main__":
    app = QApplication([])
    window = MyWindow()
    window.show()
    app.exec()

使用 Nativefier 命令行工具。

这个工具同样支持 macOS、Windows和Linux,只是操作看起来略微复杂,事实上也并不难,只是第一次用命令行多少让人有点摸头不着脑,你只要按步骤一步一步操作即可,实在不行搜索一下。

  1. 打开启动台搜索「终端」或者「Terminal」;或者使用 「Command +
    空格」,然后搜索「终端」或者「Terminal」,打开终端。
  2. 在终端中输入 “npm install -g nativefier”命令(命令行不包含双引号)并回车,安装软件包。
  3. 使用“nativefier -n "得到" -i dedaofavicon.ico
    "https://www.dedao.cn"”创建「得到」APP。其中“-n "得到””用于重命名网页默认标题为APP名字,“-i
    dedaofavicon.ico”用于更改APP的图标,这个图标从得到的网页图标提取而来,地址为
    https://www.dedao.cn/favicon.ico ;命令行的最后一个为网址,也就是你要打包的那个网页。
  4. 等待终端完成网页打包成应用,耗时 5
    秒钟。你的终端界面可能长得跟下图不一样,因为下图中的终端是“装修”过的,看起来稍微好看一点,不过外貌并不影响命令执行。
  5. 将打包完成的应用,复制到应用( Application )文件夹,然后打开启动台,就可以找到应用图标,点击打开它。

转载来自:https://zhuanlan.zhihu.com/p/461425811