Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use defusedxml for Parsing XML #4

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

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Google-News-Scraapper/app.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import requests
from xml.dom.minidom import parseString
import pandas as pd
import defusedxml.minidom


def get_google_news_result(term, count):
results = []
obj = parseString(
obj = defusedxml.minidom.parseString(
requests.get('http://news.google.com/news?q=%s&output=rss' %
term).text)
items = obj.getElementsByTagName('item')
Expand Down
2 changes: 1 addition & 1 deletion TradingView/setup.py
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
author_email="d+fixtool@0x1.org",
license="MIT",
keywords="fix testing",
Copy link
Author

@pixeebot pixeebot bot Apr 29, 2024

Choose a reason for hiding this comment

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

This package is recommended by the Python community to protect against XML vulnerabilities.

License: PSF-2.0Open SourceMore facts

install_requires=["simplefix>=1.0.8"],
install_requires=["simplefix>=1.0.8", "defusedxml==0.7.1"],
package_dir={"": "python"},
packages=["fixtool"],
entry_points={
Expand Down

AltStyle によって変換されたページ (->オリジナル) /