package fa import ( "context" "iter" "net/url" "strconv" "github.com/PuerkitoBio/goquery" "git.anthrove.art/public/go-fa-api/internal/urls" ) // browsePerPage is FA's default page size for /browse/. We use it as the // "this page is full → there's likely another one" threshold because the // browse feed paginates via POST forms in the UI; detectNextPage's anchor- // based heuristic doesn't fire on browse responses. const browsePerPage = 72 // BrowseOptions configures /browse/ filters. Zero-value defaults match // FA's web UI default: all ratings on, all categories, all art types, // any species, 72 per page. // // The filter fields use FA's internal numeric IDs (1 = "All" / "Any" for // category, atype, species). The exact list of valid values is huge and // changes over time; for now we expose them as raw ints rather than // pretending to enumerate them callers wanting a typed Category enum // should grab the value off the browse form's