Skip to content

Commit

Permalink
fixed class documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
seowings committed Mar 11, 2023
1 parent c929780 commit 6a89621
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions pysitemaps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,25 +369,6 @@ class Url:
A class to store a URL Object.
This class contains several function/methods to handle sitemap urls.
Attributes
----------
loc : str
XML Sitemap netloc (with or without Scheme)
lastmod : str
Last Modification date of the XML Sitemap
image_locations : list
List of Images included within a URL/Page.
Methods
-------
add_images(images_loc=[])
use to append images to a given url.
as_dict():
return sitemap as a dict/json object.
"""

def __init__(
Expand Down Expand Up @@ -435,30 +416,6 @@ class XmlDocument:
This class contains several function methods to handle XML Sitemaps.
It includes convenient functions e.g. add_url and add_url_set.
Attributes
----------
loc : str
XML Sitemap netloc (with or without Scheme)
lastmod : str
Last Modification date of the XML Sitemap
urls : list
List of URLs present in the file.
Methods
-------
add_url(loc, lastmod=datetime.now().strftime("%Y-%m-%d"),images_loc=[])
Can add single url. URL loc is required argument.
add_object(url_object)
Append Url Object to existing url lists.
add_from_text(xml_as_text)
this function extract and append url_set from xml_as_text. Usefull with reading sitemaps from files.
as_dict():
return sitemap as a dict/json object.
"""

def __init__(
Expand Down

1 comment on commit 6a89621

@seowings
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fix for #1 and #2

Please sign in to comment.