From 715f0174f7b333e05ed683076f820dd0363aa563 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 16 Feb 2021 16:10:03 +0300 Subject: [PATCH] Update README.md --- LICENSE | 2 +- README.md | 7 ++++++- pyscp/wikidot.py | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index f8076a4..29b15ef 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 anqxyr +Copyright (c) 2020 MrNereof Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 5a2350a..e8630c3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # pyscp +[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) +[![PyPI license](https://img.shields.io/pypi/l/pyscp.svg)](https://pypi.python.org/pypi/pyscp/) +[![PyPI version fury.io](https://badge.fury.io/py/pyscp.svg)](https://pypi.python.org/pypi/pyscp/) +[![PyPI pyversions](https://img.shields.io/pypi/pyversions/pyscp.svg)](https://pypi.python.org/pypi/pyscp/) + **pyscp** is a python library for interacting with wikidot-hosted websites. The library is mainly intended for use by the administrative staff of the www.scpwiki.com website, and has a host of feature exclusive to it. However, the majority of the core functionality should be applicalbe to any wikidot-based site. ## Installation @@ -100,4 +105,4 @@ RUN AWAY FOREVURRR (rating: 79, created: 2011-10-24 16:34:23) SCP-288: The "Stepford Marriage" Rings (rating: 56, created: 2008-11-27 07:47:01) SCP-291: Disassembler/Reassembler (rating: 113, created: 2008-11-24 20:11:11) ... -``` +``` \ No newline at end of file diff --git a/pyscp/wikidot.py b/pyscp/wikidot.py index 3cf4c9a..e2d2702 100644 --- a/pyscp/wikidot.py +++ b/pyscp/wikidot.py @@ -184,7 +184,8 @@ def tags(self): def source(self): data = self._module('viewsource/ViewSourceModule')['body'] soup = bs4.BeautifulSoup(data, 'lxml') - return ''.join([s + '\n' for s in soup.text.replace('\t','').split('\n')[1:]][1:]) + source = ''.join([s + '\n' for s in soup.text.replace('\t','').split('\n')[1:]][1:]) + return @property def created(self):