Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL is not extracted correctly #68

Closed
t-mtsmt opened this issue Apr 16, 2023 · 1 comment · Fixed by #69
Closed

URL is not extracted correctly #68

t-mtsmt opened this issue Apr 16, 2023 · 1 comment · Fixed by #69
Assignees
Labels
bug Something isn't working

Comments

@t-mtsmt
Copy link

t-mtsmt commented Apr 16, 2023

When I ran the sample script with one line of text, all text was displayed without extracting URLs.

import iocextract

content = \
"""
All the bots are on hxxp://example.com/bad/url these days.
"""

for url in iocextract.extract_urls(content):
    print(url)

The output result is as follows.

$ python3 test.py

All the bots are on hxxp://example.com/bad/url these days.

@battleoverflow battleoverflow added the bug Something isn't working label Apr 17, 2023
@battleoverflow battleoverflow self-assigned this Apr 17, 2023
battleoverflow added a commit that referenced this issue Apr 18, 2023
+ Update GitHub repo name
@battleoverflow
Copy link
Contributor

Hi, @t-mtsmt!

This issue should be fixed in the newest version of iocextract. The script you provided in the original issue should work as expected now.

You can update the iocextract package using the following command: pip3 install iocextract -U

New version: https://pypi.org/project/iocextract/1.15.2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants