[GH-ISSUE #7] ImportError: No module named w3lib.html ! #5

Closed
opened 2026-03-03 15:56:40 +03:00 by kerem · 1 comment
Owner

Originally created by @gmtungphan on GitHub (Aug 4, 2019).
Original GitHub issue: https://github.com/mrh0wl/Cloudmare/issues/7

When i run this like : python cloudmare.py had error :

Traceback (most recent call last):
File "Cloudmare.py", line 33, in
from thirdparty.html_similarity import similarity
File "/home/tungpdv/Desktop/Hacking/Cloudmare/thirdparty/html_similarity/init.py", line 4, in
from thirdparty.html_similarity.style_similarity import style_similarity
File "/home/tungpdv/Desktop/Hacking/Cloudmare/thirdparty/html_similarity/style_similarity.py", line 1, in
from thirdparty.parsel import Selector
File "/home/tungpdv/Desktop/Hacking/Cloudmare/thirdparty/parsel/init.py", line 10, in
from thirdparty.parsel.selector import Selector, SelectorList # NOQA
File "/home/tungpdv/Desktop/Hacking/Cloudmare/thirdparty/parsel/selector.py", line 9, in
from .utils import flatten, iflatten, extract_regex, shorten
File "/home/tungpdv/Desktop/Hacking/Cloudmare/thirdparty/parsel/utils.py", line 3, in
from w3lib.html import replace_entities as w3lib_replace_entities
ImportError: No module named w3lib.html

Please help me fix it .

Originally created by @gmtungphan on GitHub (Aug 4, 2019). Original GitHub issue: https://github.com/mrh0wl/Cloudmare/issues/7 When i run this like : python cloudmare.py had error : Traceback (most recent call last): File "Cloudmare.py", line 33, in <module> from thirdparty.html_similarity import similarity File "/home/tungpdv/Desktop/Hacking/Cloudmare/thirdparty/html_similarity/__init__.py", line 4, in <module> from thirdparty.html_similarity.style_similarity import style_similarity File "/home/tungpdv/Desktop/Hacking/Cloudmare/thirdparty/html_similarity/style_similarity.py", line 1, in <module> from thirdparty.parsel import Selector File "/home/tungpdv/Desktop/Hacking/Cloudmare/thirdparty/parsel/__init__.py", line 10, in <module> from thirdparty.parsel.selector import Selector, SelectorList # NOQA File "/home/tungpdv/Desktop/Hacking/Cloudmare/thirdparty/parsel/selector.py", line 9, in <module> from .utils import flatten, iflatten, extract_regex, shorten File "/home/tungpdv/Desktop/Hacking/Cloudmare/thirdparty/parsel/utils.py", line 3, in <module> from w3lib.html import replace_entities as w3lib_replace_entities ImportError: No module named w3lib.html Please help me fix it .
kerem closed this issue 2026-03-03 15:56:40 +03:00
Author
Owner

@mrh0wl commented on GitHub (Aug 9, 2019):

Use on terminal:
pip install scrapy

If this doesn’t work, use:
pip install w3lib

<!-- gh-comment-id:520052658 --> @mrh0wl commented on GitHub (Aug 9, 2019): Use on terminal: pip install scrapy If this doesn’t work, use: pip install w3lib
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloudmare#5
No description provided.