AbirHasan2005 / AbirHasan2005/LittleBrother

Problem with start the code

未關閉
#2 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
192
分支
69
PR 合併指標
30 天內沒有已合併 PR

描述

Hello excuse me to disturb you, I believe that there is a problem with the current code when it is launched...

Traceback (most recent call last):
File "C:\Users\tiall\Desktop\LittleBrother-master\littlebrother.py", line 1996, in
searchPersonne()
File "C:\Users\tiall\Desktop\LittleBrother-master\littlebrother.py", line 1246, in searchPersonne
fbtool.getInfoProfile(username)
File "C:\Users\tiall\Desktop\LittleBrother-master\littlebrother.py", line 424, in getInfoProfile
name = re.search(r'pageTitle\">(.*)', page).group(0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

The error occurs in littlebrother.py at line 424 in getInfoProfile, where a regex search returns None. Start by examining the function to see how 'page' is fetched and what its structure is. Run the script to reproduce the error, then adjust the regex or add a None check. Verify the fix by calling searchPersonne again.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
cli
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
40/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。