ferru97 / PyPaperBot

PyPaperBot is a Python tool for downloading scientific papers using Google Scholar, Crossref, and SciHub.
MIT License
358 stars 67 forks source link

Same bibtex keys #19

Open kir-malishev opened 3 years ago

kir-malishev commented 3 years ago

I ran into a situation where different articles with the same keys appear in the bibtex.bib file. For example:

@inproceedings{Hosseini_2016,
    doi = {10.1109/ism.2016.0028},
    url = {https://doi.org/10.1109%2Fism.2016.0028},
    year = 2016,
    month = {dec},
    publisher = {{IEEE}},
    author = {Mohammad Hosseini and Viswanathan Swaminathan},
    title = {Adaptive 360 {VR} Video Streaming: Divide and Conquer},
    booktitle = {2016 {IEEE} International Symposium on Multimedia ({ISM})}
}
@inproceedings{Hosseini_2016,
    doi = {10.1109/ism.2016.0093},
    url = {https://doi.org/10.1109%2Fism.2016.0093},
    year = 2016,
    month = {dec},
    publisher = {{IEEE}},
    author = {Mohammad Hosseini and Viswanathan Swaminathan},
    title = {Adaptive 360 {VR} Video Streaming Based on {MPEG}-{DASH} {SRD}},
    booktitle = {2016 {IEEE} International Symposium on Multimedia ({ISM})}

Because of this, I cannot correctly process the records using the bibtex parsing library. The library believes that the same articles are written under the same keys, although this is not the case. Is there a way to avoid giving the same keys to articles? For example, add an option that will add a sequence number or random characters to the key.

ferru97 commented 3 years ago

Yes I will add something like Hosseini_2016, Hosseini_2016_1, Hosseini_2016_2...