-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plotwords accept arg to ignore latest N years, created test python files
- Loading branch information
1 parent
84a7097
commit db02129
Showing
17 changed files
with
261 additions
and
958 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.idea/ | ||
.ipynb_checkpoints/ | ||
__pycache__/ |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
191 changes: 112 additions & 79 deletions
191
...package (updated 26 Nov)-checkpoint.ipynb → FINAL. wikiscrape package.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from test import testclass | ||
|
||
if __name__ == "__main__": | ||
print(testclass.commonwords(50)) | ||
|
||
def commonwordstest(num): | ||
return testclass.commonwords(num) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from test import testclass | ||
|
||
if __name__ == "__main__": | ||
testclass.HELP() | ||
|
||
def help1test(): | ||
testclass.HELP() | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from test import testclass | ||
|
||
if __name__ == "__main__": | ||
help(testclass) | ||
|
||
def help2test(): | ||
return help(testclass) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from test import testclass | ||
|
||
if __name__ == "__main__": | ||
testclass.plotwords('wordcount', 30, 1, 20) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from test import testclass | ||
|
||
if __name__ == "__main__": | ||
testclass.plotyear('yearcount', 30) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from test import testclass | ||
|
||
if __name__ == "__main__": | ||
testclass.summary(4) | ||
|
||
def summarytest(num): | ||
return testclass.summary(num, True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from os.path import dirname, abspath | ||
import sys | ||
|
||
# Get path of parent folder | ||
parentpath = dirname(dirname(abspath(__file__))) | ||
|
||
# Add to directory defined by sys | ||
sys.path.append(parentpath) | ||
|
||
# print(parentpath) | ||
# print(sys.path) | ||
|
||
# Now you can import wikiscrape | ||
import wikiscrape | ||
|
||
def newclass(title): | ||
return wikiscrape.wiki(title, 'yes', 'en', True, True) | ||
|
||
# Simple test | ||
if __name__ == "__main__": | ||
newclass('armin van buuren') | ||
else: | ||
testclass = wikiscrape.wiki('armin van buuren', 'yes', 'en', True, True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .wikiscrape import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.