Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNereof committed Feb 16, 2021
1 parent 4ea585c commit 715f017
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
...
```
```
3 changes: 2 additions & 1 deletion pyscp/wikidot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 715f017

Please sign in to comment.