Skip to content

Commit

Permalink
Merge pull request #116 from kurtmckee/rm-igoogle-support
Browse files Browse the repository at this point in the history
Remove support for the iGoogle exported settings format
  • Loading branch information
kurtmckee authored Dec 24, 2024
2 parents 7ffa736 + 3b217ce commit 3a003c0
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 140 deletions.
3 changes: 1 addition & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ If you're building a feed reader and you need to parse OPML subscription lists,
you've come to the right place!

listparser makes it easy to parse and use subscription lists in multiple formats.
It supports OPML, RDF+FOAF, and the iGoogle exported settings format,
and runs on Python 3.9+ and on PyPy 3.10.
It supports OPML and RDF+FOAF, and runs on Python 3.9+ and on PyPy 3.10.



Expand Down
4 changes: 4 additions & 0 deletions changelog.d/20241224_094527_kurtmckee_rm_igoogle_support.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Removed
-------

* Remove support for the iGoogle exported settings format.
5 changes: 2 additions & 3 deletions docs/detection-algorithm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ Feed and subscription list detection algorithm

.. note::

Neither RDF+FOAF nor the iGoogle exported settings formats support
embedded subscription lists. This detection algorithm only applies
to OPML subscription lists.
RDF+FOAF does not support embedded subscription lists.
This detection algorithm only applies to OPML subscription lists.

Many services and softwares output OPML subscription lists with slight
variations. listparser attempts to correctly determine whether an
Expand Down
3 changes: 1 addition & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ If you're building a feed reader and you need to import OPML subscription lists,
you've come to the right place!

listparser makes it easy to parse and use subscription lists in multiple formats.
It supports OPML, RDF+FOAF, and the iGoogle exported settings format,
and runs on Python 3.9+ and on PyPy 3.10.
It supports OPML and RDF+FOAF, and runs on Python 3.9+ and on PyPy 3.10.


Contents
Expand Down
1 change: 0 additions & 1 deletion docs/reference/object-categories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ the ``opml:outline`` element as a source of categorization information.
* ``/opml/body//outline/@category`` [#slashes]_
* ``/opml/body//outline/ancestor::outline/@text``
* ``/opml/body//outline/ancestor::outline/@title``
* ``/gtml:GadgetTabML//gtml:Tab/@title``
* ``/rdf:RDF/foaf:Group/foaf:name``
* ``/rdf:RDF//foaf:Agent/foaf:name``

Expand Down
1 change: 0 additions & 1 deletion docs/reference/object-tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ In this example, there is one tag: ``sports``.
* ``/opml/body//outline/@category`` [#noslashes]_
* ``/opml/body/outline/outline/parent::outline/@text``
* ``/opml/body/outline/outline/parent::outline/@title``
* ``/gtml:GadgetTabML//gtml:Tab/@title``
* ``/rdf:RDF/foaf:Group/foaf:name``
* ``/rdf:RDF//foaf:Agent/foaf:name``

Expand Down
1 change: 0 additions & 1 deletion docs/reference/object-url.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ to indicate what format the target feed is presented in.
.. rubric:: Feed URLs come from

* ``/opml/body//outline/@xmlUrl``
* ``/gtml:GadgetTabML//iGoogle:Module[@type="RSS"]/iGoogle:ModulePrefs/@xmlUrl``
* ``/rdf:RDF//foaf:Agent//rss:channel/@rdf:about``
* ``/rdf:RDF//ya:feed/@rdf:resource``

Expand Down
5 changes: 0 additions & 5 deletions docs/reference/version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ opml
rdf
`RDF+FOAF <http://xmlns.com/foaf/spec/>`_

igoogle
iGoogle exported settings format [#igoogle]_


.. rubric:: Footnotes

Expand All @@ -34,5 +31,3 @@ igoogle
and included this message:
[If] you see an OPML 1.1 file, you should treat it like an OPML 1.0 file. That's it. Enjoy!
.. [#igoogle] `How to export your iGoogle page settings <https://googlesystem.blogspot.com/2008/04/backup-your-igoogle-page.html>`_
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT"
readme = "README.rst"
repository = "https://github.com/kurtmckee/listparser/"
documentation = "https://listparser.readthedocs.io/en/latest/"
keywords = ["opml", "foaf", "igoogle", "feed"]
keywords = ["opml", "foaf", "feed"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand Down
3 changes: 1 addition & 2 deletions src/listparser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
except ImportError:
lxml = None # type: ignore[assignment]

from . import common, foaf, igoogle, opml, xml_handler
from . import common, foaf, opml, xml_handler
from .exceptions import ListparserError

__author__ = "Kurt McKee <[email protected]>"
Expand All @@ -33,7 +33,6 @@
(
opml.OpmlMixin,
foaf.FoafMixin,
igoogle.IgoogleMixin,
xml_handler.XMLHandler,
),
{},
Expand Down
41 changes: 0 additions & 41 deletions src/listparser/igoogle.py

This file was deleted.

2 changes: 0 additions & 2 deletions src/listparser/xml_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

prefixes = {
"http://opml.org/spec2": "opml",
"http://www.google.com/ig": "igoogle",
"http://schemas.google.com/GadgetTabML/2008": "gtml",
"http://www.w3.org/1999/02/22-rdf-syntax-ns#": "rdf",
"http://www.w3.org/2000/01/rdf-schema#": "rdfs",
"http://xmlns.com/foaf/0.1/": "foaf",
Expand Down
8 changes: 0 additions & 8 deletions tests/igoogle/GadgetTabML.xml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/igoogle/ModulePrefs_xmlUrl-wrong_type.xml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/igoogle/ModulePrefs_xmlUrl.xml

This file was deleted.

14 changes: 0 additions & 14 deletions tests/igoogle/hierarchy-bad.xml

This file was deleted.

21 changes: 0 additions & 21 deletions tests/igoogle/hierarchy-multiple-tabs.xml

This file was deleted.

14 changes: 0 additions & 14 deletions tests/igoogle/hierarchy.xml

This file was deleted.

0 comments on commit 3a003c0

Please sign in to comment.