Change README to enjoy Github syntax highlighting
This commit is contained in:
@@ -97,6 +97,7 @@ For example: `python2.7 PATH/TO/MORSS/morss.py http://feeds.bbci.co.uk/news/rss.
|
||||
The code was not optimized to be used as a library. Therefore you can't really pass options to morss (see Arguments above), unless you rewrite the `ParseOptions` class.
|
||||
However here is a quick draft of what your code should you like if you intend to use morss as a library.
|
||||
|
||||
```python
|
||||
import morss
|
||||
url = 'http://newspaper.example/feed.xml'
|
||||
options = morss.ParseOptions() # there's no easy way to pass arguments by hand from python so far...
|
||||
@@ -111,6 +112,7 @@ However here is a quick draft of what your code should you like if you intend to
|
||||
output_json = rss.tojson()
|
||||
output_json_indented = rss.tojson(indent=4)
|
||||
output_csv = rss.tocsv()
|
||||
```
|
||||
|
||||
##Cache information
|
||||
|
||||
|
Reference in New Issue
Block a user