alex_bn_lee

导航

上一页 1 2 3 4 5 6 7 8 9 10 ··· 247 下一页

2025年3月5日 #

[1117] Remove some pages from a PDF while preserving the bookmarks

摘要: To remove the last page from a PDF while preserving the bookmarks, you can use the PyMuPDF library (fitz package) instead of PyPDF2, as PyMuPDF provid 阅读全文

posted @ 2025-03-05 14:10 McDelfino 阅读(43) 评论(0) 推荐(0)

[1116] Python Regular Expression (re)

摘要: ref: Python RegEx - geeksforgeeks A Regular Expression or RegEx is a special sequence of characters that uses a search pattern to find a string or set 阅读全文

posted @ 2025-03-05 07:08 McDelfino 阅读(75) 评论(0) 推荐(0)

2025年2月27日 #

[1115] Python re library examples

摘要: Ref: Python RegEx To find a pattern like "Page " followed by a number in a string, you can use the `re` (regular expressions) module in Python. Here's 阅读全文

posted @ 2025-02-27 08:29 McDelfino 阅读(36) 评论(0) 推荐(0)

2025年2月25日 #

[1114] Extract the Dataframe from a table on the webpage

摘要: Here is the screenshot of the webpage. Here are the copied texts. Legislation and compliance News and media NSW Environment Protection Authority (EPA) 阅读全文

posted @ 2025-02-25 12:28 McDelfino 阅读(9) 评论(0) 推荐(0)

[1113] Extract the list of items from a dropdown menu on a HTML text

摘要: Following the scripts from the previous blog, here is another example: from bs4 import BeautifulSoup html = """<select name="dbcboNarrowSearchNoticeTy 阅读全文

posted @ 2025-02-25 12:01 McDelfino 阅读(17) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 10 ··· 247 下一页