Using Parsel Instead of Beautiful Soup for Web Scraping
For a long time, I have been using Beautiful Soup 4 to extract data from web pages' HTML markup, it's popular, easy, robust, and battle-tested library for navigating, searching, and modifying the DOM tree. But, recently I came across Parsel, another HTML parsing library which supports XPath selectors, which is missing in Beautiful Soup, and I was in need of using something that can extract data from HTML using XPath so I decided to get it a try. Here's my thought after using it!
https://yshalsager.com/en/posts/using-parsel-instead-of-beautiful-soup-for-web-scraping/
For a long time, I have been using Beautiful Soup 4 to extract data from web pages' HTML markup, it's popular, easy, robust, and battle-tested library for navigating, searching, and modifying the DOM tree. But, recently I came across Parsel, another HTML parsing library which supports XPath selectors, which is missing in Beautiful Soup, and I was in need of using something that can extract data from HTML using XPath so I decided to get it a try. Here's my thought after using it!
https://yshalsager.com/en/posts/using-parsel-instead-of-beautiful-soup-for-web-scraping/
yshalsager
Using Parsel instead of Beautiful Soup for Web Scraping
For a long time, I have been using Beautiful Soup 4 to extract data from web pages' HTML markup, it's popular, easy, robust, and battle-tested library for navigating, searching, and modifying the DOM tree. But, recently I came across Parsel, another HTML…
👍2
yshalsager's Channel pinned «Using Parsel Instead of Beautiful Soup for Web Scraping For a long time, I have been using Beautiful Soup 4 to extract data from web pages' HTML markup, it's popular, easy, robust, and battle-tested library for navigating, searching, and modifying the DOM…»
I will be sharing notes from my public digital garden here starting from today
Yshalsager
yshalsager's Digital Garden 🪴
yshalsager's Digital Garden, a place where I share my notes with the world!
👍2
How to replace anything with page breaks in LibreOffice?
https://notes.yshalsager.com/en/notes/LibreOffice-replace-with-page-breaks/
https://notes.yshalsager.com/en/notes/LibreOffice-replace-with-page-breaks/
Yshalsager
LibreOffice replace with page breaks
LibreOffice replace with page breaks الحالة:: #ملاحظة_مؤرشفة
الرابط: https://ask.libreoffice.org/t/find-and-replace-line-breaks-with-page-breaks/36500/2
The extension AltSearch 14 offers this: RegEx enabled search for \n and replace with \M\p.
الرابط: https://ask.libreoffice.org/t/find-and-replace-line-breaks-with-page-breaks/36500/2
The extension AltSearch 14 offers this: RegEx enabled search for \n and replace with \M\p.
How to download subtitle only using youtube-dl?
https://notes.yshalsager.com/en/notes/youtube-dl-download-subtitle-only/
https://notes.yshalsager.com/en/notes/youtube-dl-download-subtitle-only/
Yshalsager
youtube-dl download subtitle only
youtube-dl download subtitle only الحالة:: #ملاحظة_مؤرشفة
الرابط: https://superuser.com/a/927532
المعرفة:: Linux
1 2 3 4 5 youtube-dl --sub-lang LANG --skip-download youtube-dl --all-subs --skip-download youtube-dl --sub-lang LANG --write-auto-sub --skip…
الرابط: https://superuser.com/a/927532
المعرفة:: Linux
1 2 3 4 5 youtube-dl --sub-lang LANG --skip-download youtube-dl --all-subs --skip-download youtube-dl --sub-lang LANG --write-auto-sub --skip…
How to copy left audio channel to right using ffmpeg?
https://notes.yshalsager.com/en/notes/ffmpeg-copy-left-audio-to-right/
https://notes.yshalsager.com/en/notes/ffmpeg-copy-left-audio-to-right/
Yshalsager
ffmpeg copy left audio to right
ffmpeg copy left audio to right الحالة:: #ملاحظة_مؤرشفة
الرابط: https://superuser.com/a/1592759
المعرفة:: Linux
Seems like you have a stereo input, but one channel is silent.
الرابط: https://superuser.com/a/1592759
المعرفة:: Linux
Seems like you have a stereo input, but one channel is silent.
Some Regex Tricks
Regex negative lookahead - not preceded by
https://notes.yshalsager.com/en/notes/Regex-negative-lookahead-not-preceded-by/
Regex Match Arabic Letters
https://notes.yshalsager.com/en/notes/Regex-Match-Arabic-Letters/
Regex for emoji
https://notes.yshalsager.com/en/notes/Regex-for-emoji/
Arabic numbers regex
https://notes.yshalsager.com/en/notes/Arabic-numbers-regex
regex match string not preceded by another with a regular expression
https://notes.yshalsager.com/en/notes/regex-match-string-not-preceded-by-another-with-a-regular-expression/
Javascript Regular expression to match non-ASCII characters
https://notes.yshalsager.com/en/notes/programming/Javascript-Regular-expression-to-match-non-ASCII-characters/
Regex encoded URL
https://notes.yshalsager.com/en/notes/Regex-encoded-URL/
Regex negative lookahead - not preceded by
https://notes.yshalsager.com/en/notes/Regex-negative-lookahead-not-preceded-by/
Regex Match Arabic Letters
https://notes.yshalsager.com/en/notes/Regex-Match-Arabic-Letters/
Regex for emoji
https://notes.yshalsager.com/en/notes/Regex-for-emoji/
Arabic numbers regex
https://notes.yshalsager.com/en/notes/Arabic-numbers-regex
regex match string not preceded by another with a regular expression
https://notes.yshalsager.com/en/notes/regex-match-string-not-preceded-by-another-with-a-regular-expression/
Javascript Regular expression to match non-ASCII characters
https://notes.yshalsager.com/en/notes/programming/Javascript-Regular-expression-to-match-non-ASCII-characters/
Regex encoded URL
https://notes.yshalsager.com/en/notes/Regex-encoded-URL/
Yshalsager
Regex negative lookahead - not preceded by
المعرفة:: الحالة:: #ملاحظة_مؤرشفة
المراجع:: https://stackoverflow.com/a/7317116
A zero-width negative lookahead:
Line starts with title then whatever not followed by space 1 ^title:(?
المراجع:: https://stackoverflow.com/a/7317116
A zero-width negative lookahead:
Line starts with title then whatever not followed by space 1 ^title:(?
👍1
facebook/youtube to telegram live with ffmpeg
https://notes.yshalsager.com/en/notes/facebook-youtube-to-telegram-live-with-ffmpeg/
https://notes.yshalsager.com/en/notes/facebook-youtube-to-telegram-live-with-ffmpeg/
Yshalsager
facebook youtube to telegram live with ffmpeg
facebook / youtube to telegram live with ffmpeg الحالة:: #ملاحظة_مؤرشفة
المعرفة:: Linux
1 2 3 4 5 6 7 ffmpeg -i "$(yt-dlp -f dash-lp-md-a-0 -g https://www.
المعرفة:: Linux
1 2 3 4 5 6 7 ffmpeg -i "$(yt-dlp -f dash-lp-md-a-0 -g https://www.
❤1👍1
ffmpeg rtmp stream multiple output
https://notes.yshalsager.com/en/notes/ffmpeg-rtmp-stream-multiple-output/
https://notes.yshalsager.com/en/notes/ffmpeg-rtmp-stream-multiple-output/
Yshalsager
ffmpeg rtmp stream multiple output
الحالة:: #ملاحظة_مؤرشفة
المعرفة:: Linux
Stream must be mapped before using tee muxer. 1 ffmpeg -stream_loop -1 -i https://qurango.net/radio/tarateel -map 0:a -c:a aac -f tee "[f=flv:onfail=ignore]rtmps://server1|[f=flv:onfail=ignore]rtmps://server2"
المعرفة:: Linux
Stream must be mapped before using tee muxer. 1 ffmpeg -stream_loop -1 -i https://qurango.net/radio/tarateel -map 0:a -c:a aac -f tee "[f=flv:onfail=ignore]rtmps://server1|[f=flv:onfail=ignore]rtmps://server2"
👍1
Web Scraping Libraries
https://notes.yshalsager.com/en/notes/Web-Scraping-Libraries/
https://notes.yshalsager.com/en/notes/Web-Scraping-Libraries/
Yshalsager
Web Scraping Libraries
المعرفة:: البرمجة
الحالة:: #ملاحظة_مؤرشفة
المراجع::
https://github.com/apify/crawlee: Crawlee — A web scraping and browser automation library for Node.js that helps you build reliable crawlers.
الحالة:: #ملاحظة_مؤرشفة
المراجع::
https://github.com/apify/crawlee: Crawlee — A web scraping and browser automation library for Node.js that helps you build reliable crawlers.
Forwarded from The Devs
“linux command line for you an me”. a book for newcomers to the command line environment.
#resources #linux #cli
@thedevs
https://thedevs.link/WL7E1w
#resources #linux #cli
@thedevs
https://thedevs.link/WL7E1w
Tweak MP3 ID3 Metadata tags on Linux
https://notes.yshalsager.com/en/notes/Linux-Tweak-MP3-ID3-Metadata-tags/
https://notes.yshalsager.com/en/notes/Linux-Tweak-MP3-ID3-Metadata-tags/
Yshalsager
Linux Tweak MP3 ID3 Metadata tags
المعرفة:: Linux
الحالة:: #ملاحظة_مؤرشفة
المراجع::
Checking ID3 Tags 1 2 3 4 eyeD3 file.mp3 id3tool file.mp3 id3info file.mp3 mp3info file.mp3 Removing All ID3 Tags Using id3convert Install libid3-tools first.
الحالة:: #ملاحظة_مؤرشفة
المراجع::
Checking ID3 Tags 1 2 3 4 eyeD3 file.mp3 id3tool file.mp3 id3info file.mp3 mp3info file.mp3 Removing All ID3 Tags Using id3convert Install libid3-tools first.
Pandoc set docx output direction to RTL
https://notes.yshalsager.com/en/notes/Pandoc-set-docx-output-direction-to-RTL/
https://notes.yshalsager.com/en/notes/Pandoc-set-docx-output-direction-to-RTL/
Yshalsager
Pandoc set docx output direction to RTL
المعرفة:: Linux
الحالة:: #ملاحظة_مؤرشفة
المراجع:: https://github.com/jgm/pandoc/issues/3140
closed with ab31d5e
You can set the yaml metadata, run -M dir=rtl on the command-line, and/or use divs and spans.
الحالة:: #ملاحظة_مؤرشفة
المراجع:: https://github.com/jgm/pandoc/issues/3140
closed with ab31d5e
You can set the yaml metadata, run -M dir=rtl on the command-line, and/or use divs and spans.
libreoffice writer change footnote separator direction
https://notes.yshalsager.com/en/notes/libreoffice-writer-change-footnote-separator-direction/
https://notes.yshalsager.com/en/notes/libreoffice-writer-change-footnote-separator-direction/
Yshalsager
libreoffice writer change footnote separator direction
المعرفة::
الحالة:: #ملاحظة_مؤرشفة
المراجع:: https://ask.libreoffice.org/t/how-to-change-the-footnote-separator-direction/53637/2
Styles -> Manage Styles -> Icon: Page Styles (4th icon below Styles) Right click on Default Style -> Modify -> Tab: Footnote (…
الحالة:: #ملاحظة_مؤرشفة
المراجع:: https://ask.libreoffice.org/t/how-to-change-the-footnote-separator-direction/53637/2
Styles -> Manage Styles -> Icon: Page Styles (4th icon below Styles) Right click on Default Style -> Modify -> Tab: Footnote (…
[Python] How to import requirements.txt from an existing project using Poetry
https://notes.yshalsager.com/en/notes/programming/python-How-to-import-requirements-txt-from-an-ex/
https://notes.yshalsager.com/en/notes/programming/python-How-to-import-requirements-txt-from-an-ex/
Yshalsager
python - How to import requirements txt from an ex
python - How to import requirements.txt from an existing project using Poetry الحالة:: #ملاحظة_مؤرشفة
الرابط: https://stackoverflow.com/a/62787881/10371745
المعرفة:: Python
poetry doesn’t support this directly.
الرابط: https://stackoverflow.com/a/62787881/10371745
المعرفة:: Python
poetry doesn’t support this directly.