MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _is_probable_scholar_block_page

Function _is_probable_scholar_block_page

agents/coldstart-agent/main.py:774–786  ·  view source on GitHub ↗

Detect common anti-bot / captcha pages returned by Scholar.

(html_text: str)

Source from the content-addressed store, hash-verified

772 stats["sample_titles"].append(title)
773
774 collaboration_network = []
775 for author_name, stats in coauthor_stats.items():
776 top_venues = [venue for venue, _ in stats["venues"].most_common(3)]
777 collaboration_network.append(
778 {
779 "name": author_name,
780 "count": int(stats["count"]),
781 "citation_sum": int(stats["citation_sum"]),
782 "last_year": int(stats["last_year"] or 0),
783 "top_venues": top_venues,
784 "sample_titles": list(stats["sample_titles"][:2]),
785 }
786 )
787
788 collaboration_network.sort(
789 key=lambda item: (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected