bee-san / pyWhat

🐸 Identify anything. pyWhat easily lets you identify emails, IP addresses, and more. Feed it a .pcap file or some text and it'll tell you what it is! πŸ§™β€β™€οΈ
MIT License
6.52k stars 350 forks source link

Add DOI support #219

Closed spicyyboi closed 2 years ago

spicyyboi commented 2 years ago

⚠ Pull Requests not made with this template will be automatically closed πŸ”₯

Prerequisites

Why do we need this pull request?

This adds the support for DOIs (digital object identifiers). DOIs are a standardized way to resolve documents. You can learn more about them here.

Copy / paste of output

Please copy and paste the output of PyWhat with your new addition using an example that tests this addition below:

> what doi:10.1000/123
Matched on: doi:10.1000/123
Name: Digital Object Identifier (DOI)
> what https://doi.org/10.1000/123
Matched on: https://doi.org/10.1000/123
Name: Digital Object Identifier (DOI)

Matched on: https://doi.org/10.1000/123
Name: Uniform Resource Locator (URL)
bee-san commented 2 years ago

Copy / paste of output

Please show full output :)

spicyyboi commented 2 years ago

Sure! I've edited the comment to add the command signature and also added another example.

bee-san commented 2 years ago

Thanks so much!! I ask for full output so I can see if there's any false positives :) <3

codecov-commenter commented 2 years ago

Codecov Report

Merging #219 (cb319bc) into main (ec34001) will increase coverage by 0.03%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #219      +/-   ##
==========================================
+ Coverage   92.52%   92.55%   +0.03%     
==========================================
  Files          14       14              
  Lines        1204     1209       +5     
==========================================
+ Hits         1114     1119       +5     
  Misses         90       90              
Impacted Files Coverage Ξ”
tests/test_click.py 98.34% <100.00%> (+0.01%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data Powered by Codecov. Last update ec34001...cb319bc. Read the comment docs.