Documentation
¶
Index ¶
Constants ¶
View Source
const ( JSONFile = "metadata.jsonl" PDFDirectory = "pdfs/" TextDirectory = "texts/" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArxivPaper ¶
type ArxivPaper struct {
ID string `json:"id"`
Updated string `json:"updated"`
Published string `json:"published"`
Title string `json:"title"`
Summary string `json:"-"` // skip in JSON like Rust
Authors []string `json:"authors"`
PrimaryCategory string `json:"primary_category"`
Categories []string `json:"categories"`
PDFURL string `json:"pdf_url"`
HTMLURL string `json:"html_url"`
Comment *string `json:"comment,omitempty"`
}
func (*ArxivPaper) FetchPDF ¶
func (p *ArxivPaper) FetchPDF(ctx context.Context, outPath string) error
func (*ArxivPaper) WriteSummary ¶
func (p *ArxivPaper) WriteSummary(outPath string) error
type Entry ¶
type Entry struct {
XMLName xml.Name `xml:"entry"`
ID string `xml:"id"`
Updated string `xml:"updated"`
Published string `xml:"published"`
Title string `xml:"title"`
Summary string `xml:"summary"`
Authors []Author `xml:"author"`
Links []Link `xml:"link"`
Categories []Category `xml:"category"`
Comment Comment `xml:"http://arxiv.org/schemas/atom comment"`
}
Click to show internal directories.
Click to hide internal directories.