ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks. The work-arounds are interesting but I'm much more interested in the cause, either on my end or on their end. It appears that the same problem may affect many sites.
I kept looking because I am interested in this myself. I now understand what/why.
This works for now. No need to do system wide change. It's actually a vulnerability that openssl 3 closed. Problem is that some servers needs to be updated. But, if you see more of them:
export OPENSSL_CONF=~/openssl.cnf
python ./myscript.py
<urllib.request.Request object at 0x7f998351b150>
<http.client.HTTPResponse object at 0x7f9983524700>
<?xml version="1.0" encoding="utf-8"?><rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Integritetsskyddsmyndigheten - News in English</title><link>http://www.imy.se/en/news/rss/</link><description>Integritetsskyddsmyndigheten - News in English</description><item><guid isPermaLink="false">935d07a1-64f7-4183-9e3d-12c5f95a193e</guid><link>https://www.imy.se/en/news/four-companies-must-stop-using-google-analytics/</link><title>Four companies must stop using Google Analytics </title><description>The Swedish Authority for Privacy Protection (IMY) has audited how four c
...
And, I could not stand to NOT parse that, now that I get it.
Code:
export OPENSSL_CONF=~/openssl.cnf
Code:
#!/usr/bin/python
from xml.etree import ElementTree
from urllib import request
#Make a user agent string for urllib to use
agent = ('Mozilla/5.0 (Windows NT 10.1; Win64; x64; rv:109.0) '
'Gecko/20100101 Firefox/115.0')
user_agent = {'User-Agent': agent}
class MakeList():
def __init__(self, url, fname):
#Get the xml to parse
req = request.Request(url, data=None, headers=user_agent)
html = request.urlopen(req)
tree = ElementTree.parse(html)
root = tree.getroot()
#Get tag data
tagA = root.findall('./channel/item/title')
tagB = root.findall('./channel/item/link')
tagC = root.findall('./channel/item/description')
tagD = []
#Append lines with separator
for a,b,c in zip(tagA,tagB,tagC):
tagD.extend([a.text, b.text, c.text, '_' * 70])
#Print
for i in tagD:
print(i)
#Write list to file
with open((fname), 'a') as f:
for line in tagD:
f.write('%s\n' % line)
if __name__ == "__main__":
#Urls, log names
A = ('https://www.imy.se/en/news/rss/', 'Imy.log')
B = ('file:///home/path/file.xml', 'Imytest.log')
#Choose rss here
url, fname = A
MakeList(url, fname)
Code:
python ./mytest.py
Four companies must stop using Google Analytics
https://www.imy.se/en/news/four-companies-must-stop-using-google-analytics/
The Swedish Authority for Privacy Protection (IMY) has audited how four companies use Google Analytics for web statistics. IMY issues administrative fines against two of the companies. One of the companies has recently stopped using the statistics tool on its own initiative, while IMY orders the other three to also stop using it.
______________________________________________________________________
Administrative fee against Spotify
https://www.imy.se/en/news/administrative-fee-against-spotify/
The Swedish Authority for Privacy Protection (IMY) has audited how Spotify handles customers' right to access their personal data. The deficiencies that have been discovered cause IMY to issue an administrative fine of SEK 58 million against the company.
______________________________________________________________________
Data protection officers point to problems applying GDPR
https://www.imy.se/en/news/data-protection-officers-point-to-problems-applying-gdpr/
A survey by the Swedish Authority for Privacy Protection (IMY) notes that less than half of responding data protection officers assess that their own organisation works continually and systematically with data protection.
______________________________________________________________________
...
Love it when members ask questions about problems. Makes me learn myself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.