nelson-gon / pycite Goto Github PK
View Code? Open in Web Editor NEWPython Citations Generator
Home Page: https://pycite.readthedocs.io
License: MIT License
Python Citations Generator
Home Page: https://pycite.readthedocs.io
License: MIT License
Description
I would like to automate the doc generation and release process.
Similar Features
This is similar to scripts/mkdocs.sh
and scripts/release.sh
.
Feature Details
Sufficiently described.
Proposed Implementation
Use an Actions run to automate these e.g. "on release" to run "release.sh". Should also set environmental variables i.e. PyPI username and password.
Describe the bug
When running bash scripts/mkdocs.sh
, I received errors.
To Reproduce
On a Linux system while in the directory's root, run bash scripts/mkdocs.sh
.
Expected behavior
I expected to have documentation build flawlessly or at least attempt to build.
Unexpected behavior
I received the following errors:
/usr/bin/python3: No module named m2r
mv: cannot stat '.github/CONTRIBUTING.rst': No such file or directory
mv: cannot stat 'README.rst': No such file or directory
mv: cannot stat 'changelog.rst': No such file or directory
Building docs for pycite
scripts/mkdocs.sh: line 23: ./make.bat: Permission denied
System Details
OS: Linux 5.8.0-55-generic #62~20.04.1-Ubuntu
Package hash: https://github.com/Nelson-Gon/pycite/tree/914367ac61bd11d2e7ed4bb84e716cc45392ea38
Description
I would like to have a log file that shows me all the messages that are produced on the console.
Similar Features
This is currently done by writing messages to the console. However, for future reference, it would be great to provide a log file that holds all these messages.
Feature Details
Sufficiently described above.
Proposed Implementation
Use the logging module. In addition, it would be great to have some sort of control over this logging process and/or disable it optionally.
Describe the bug
For papers from sciencedirect.com, sometimes year is in place of volume and volume in place of year.
To Reproduce
Run tests/workflows for https://github.com/Nelson-Gon/pycite/tree/b116046ddf7f316eff4e6a4bc5aaad899bc11cda and look at the last two citations.
Expected behavior
Expected a consistent output regardless of paper since it is the same website.
Unexpected behavior
Got differing citations based on link/paper.
System Details
Dev version: https://github.com/Nelson-Gon/pycite/tree/b116046ddf7f316eff4e6a4bc5aaad899bc11cda
Windows 10, Ubuntu 18.04
Describe the bug
Test files are overwritten at each tests run.
To Reproduce
Run python tests.py
. Some files will be overwritten after tests have completed.
Expected behavior
Passing tests without replacing test files.
Unexpected behavior
Test files are overwritten.
System Details
Windows 10, Python 3.8.6, Main https://github.com/Nelson-Gon/pycite/tree/5099153a6ad5fae0aafac0aaf787913615451089
Describe the bug
When running the program per the directions in README.rst, the program errors out
To Reproduce
Go to line 162 of README.rst and do as follows:
from pycite.pycite import PyCite
my_citations = PyCite(input_file="testfiles/testlinks.txt", output_file="testfiles/citations.txt")
my_citations.cite()
my_citations.cite()
will run correctly for a short time and then give the following error message when trying to cite this (https://www.sciencedirect.com/science/article/pii/S0301051117302314) article:
(Traceback (most recent call last):
File "", line 1, in
File "/home/hudsonlanier/.virtualenvs/pycite/lib/python3.9/site-packages/pycite/pycite.py", line 132, in cite
title = bs4_link.find_all("h1", {"class": "content-title"})[0].text
IndexError: list index out of range)
Expected behavior
The expectation is that this will either correctly cite the article or at least not error out the program as a result of not being able to cite the article.
Unexpected behavior
Traceback (most recent call last):
File "", line 1, in
File "/home/hudsonlanier/.virtualenvs/pycite/lib/python3.9/site-packages/pycite/pycite.py", line 132, in cite
title = bs4_link.find_all("h1", {"class": "content-title"})[0].text
IndexError: list index out of range
System Details
Describe the bug
Authors list is not of the desired format.
To Reproduce
Run cite
for a text file.
Expected behavior
Expected to have authors listed as per the Harvard referencing style.
Unexpected behavior
Authors list was of the unexpected format. Specifically, I got misplaced &
and and
.
System Details
Latest version: https://github.com/Nelson-Gon/pycite/tree/c83db0df6d0d3f176189f0538a4ef04fa0e3dca1
Description
I would like to build citations for papers that come from Science Direct.
Similar Features
Similar to functions in ncbi.py
and pubmed.py
.
Feature Details
Same as above.
Proposed Implementation
None for now. A checklist
Description
As per Harvard citation standards, the citation list should be ordered alphabetically.
Similar Features
Related to pycite.cite()
and/or the individual *_final_citation
Feature Details
Sufficiently described.
Proposed Implementation
A simple name based sort of the generated citation list?
Describe the bug
In the final citation, if there is only one author, the citation begins with an &
.
To Reproduce
Using latest dev version on a paper like https://www.sciencedirect.com/science/article/pii/S138824571730055X, one will get something like:
'& Hallett M (2017) Smart brain stimulation. Clinical Neurophysiology, 128(5), 839-840'
Expected behavior
Expected 'Hallett M (2017) Smart brain stimulation. Clinical Neurophysiology, 128(5), 839-840'
Unexpected behavior
Described above.
System Details
Dev version https://github.com/Nelson-Gon/pycite/tree/b116046ddf7f316eff4e6a4bc5aaad899bc11cda
Description
I would like to generate citations for papers obtained from PubMed.
Similar Features
Similar to PyCite.cite
Feature Details
Sufficiently described. Need to generate citations for websites like https://pubmed.ncbi.nlm.nih.gov/paperidhere
Proposed Implementation
Probably need to rethink the selectors.
Post Proposal Edits
&
instead of ,
Description
I would like to cite papers from JSTOR
Similar Features
Similar to NCBI and other sources.
Feature Details
Full Harvard citation as required.
Proposed Implementation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.