Skip to content

Commit

Permalink
Merge pull request #325 from DysphoricUnicorn/move-info-about-file-na…
Browse files Browse the repository at this point in the history
…mes-underneath-correct-subheading

Move info about OS specific file syntax to correct subheading
  • Loading branch information
kurtmckee committed Oct 27, 2022
2 parents a48e403 + 3eda570 commit ef6b037
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ Parsing a feed from a remote :abbr:`URL (Uniform Resource Locator)`
'Sample Feed'


Parsing a feed from a local file
--------------------------------

The following example assumes you are on Windows, and that you have saved a feed at :file:`c:\\incoming\\atom10.xml`.

.. note::

:program:`Universal Feed Parser` works on any platform that can run
:program:`Python`; use the path syntax appropriate for your platform.

Parsing a feed from a local file
--------------------------------
::


>>> import feedparser
>>> d = feedparser.parse(r'c:\incoming\atom10.xml')
>>> d['feed']['title']
Expand Down

0 comments on commit ef6b037

Please sign in to comment.