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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove newspaper3k from setup #273

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

Medno
Copy link
Contributor

@Medno Medno commented Jul 3, 2024

Hey @fhamborg 馃憢

We've noticed that newspaper4k has been imported in the setup.
Since newspaper3k is also installed, it may be confusing to know which library is used to handle the articles because both libraries can be imported using :
from newspaper import ...

I also made some formatting changes to the setup.py file.

Let me know if you have any feedback 馃檹

'elasticsearch>=2.4',
'beautifulsoup4>=4.3.2',
'readability-lxml>=0.6.2',
'newspaper3k>=0.2.8',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleted from the setup.py

@Medno
Copy link
Contributor Author

Medno commented Jul 4, 2024

Hey @fhamborg
Currently, it's causing some crashes since both packages are installed in the newspaper/ folder.
There are imports from the library like from newspaper.utils import whatever that conflict because in one library utils it's a file, and in the other, it's a folder.

Copy link

@nighttrain7 nighttrain7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, this is a correct fix that works on my end. Thank you!

@t1h0 t1h0 mentioned this pull request Jul 7, 2024
@fhamborg fhamborg merged commit d79ae58 into fhamborg:master Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants