functioncount_julia_q()h=parsehtml(String(take!(HTTP.get("$baseURL/questions/tagged/julia-lang?sort=newest&pagesize=50"))));s1=sel".question-summary"s2=sel"[rel=\"next\"]"count=0whiletrueq=matchall(s1,h.root)count=count+length(q)elem=matchall(s2,h.root)iflength(elem)>0nxt=getattr(elem[1],"href")h=parsehtml(String(take!(HTTP.get("$baseURL$nxt"))))elsebreakendendprintln("Total number of Julia Questions: $count")end@timecount_julia_q()

functioncount_q(tag)client=HTTP.Client()h1=parsehtml(String(take!(HTTP.get(client,"$baseURL/questions/tagged/$tag?sort=newest&pagesize=50"))));s1=sel".question-summary"s2=sel"[rel=\"next\"]"count=0client=HTTP.Client()whiletrueq=matchall(s1,h1.root)count=count+length(q)elem=matchall(s2,h1.root)iflength(elem)>0nx=getattr(elem[1],"href")h1=parsehtml(String(take!(HTTP.get(client,"$baseURL$nx"))))elsebreakendendprintln("Total number of $tag Questions: $count")end