Closed mzji closed 1 year ago
提供一下房间号
提供一下房间号
图里就有, 196645 (
我这边测试请求接口是返回的数据有时候是乱码导致获取失败, 然后如果返回的正常 正则是没有问题的
这就麻烦了
running 1 test
�}�r�F���<?�ۙ!E,\�seɲdK�F��8��
��d\e'�Ď�݉�8�ug�8�d�T�}�O���
\$+KMً�>�}��Y�C�����[<1w R��ھ�<8�F4I/�D���ǎD�2Z�HrD�UŖ"ŊdZ�==�8�F�Q�.U��hCU�k�iG#EC���Uٮ��JC-qr���j��������C��
���m����ط�VmM�������o}���K�l���ƹ+�W��w�W�̳���m��W(<�l����ŷ���m��T��Z\y��6F��Ə��njjM�Ղ�0�OQ�+VL��#E�pME�S1���%����n
S-�z�6a�L�Q=;9��[ʭ� ��ղ6yZ���\�����cK�'���TK825q81!�?:v����q��y�ɱ�Qn n����:=v�����~yN~��6u�P�O�>���8-<�tT�T��cKy���G�1��c����z�2��Vԗ����� ��i�V�)Q��{�)��b����O��S�k\Q?���22������a��fnc�ι�����q��j�V
�Y$հ~�����۪�'Pasg��*Z���.�j醮q�+�R�0�y�0���/��d����4$9�,��A���j�� ������ r��|.Ѡ�~���ݑ�Nc?�.h�6q/%��沪��������Sc������H$�HX�w�
R�JL�3���D���n�
y5R�$
�>�HfI]�V�Y��S���N���.�Lg����R4���j#�
��A\3�F4B\�k
������x��w�ݾ�|����o��~v�����S��5��zj�K\QS�K8��$���P�Z$����?}��ܝD� ��ݍ
������ղ�"�R&�sшe�d
M@3�š�^5�� �ꮣ�MW�\
1�jN�]
�m������:��Рd����Rx:�����
ȓI]hv�D�v����z'ٟ�\�0��d+���wi��x3���;k�/{�IQ�u�����
C�<���N�3N}ʤ���Q�T��:"5�����Qi\���ۺv���[��S��Ɂ�lgU1-p�q'��8CY�l\�d�1 1u� �[�-C%q����h�4e�(�{VR!����$]�:�Ȱ�a�T:
0Y��v0�hu#��^��w?'��
~)��v��t4�\2�#�j.�-���K��tLMG0Dn��{�@��NŖI+�8Q4�ږ�)�����a&엒��f��� �2�퀁����,1S`Z�He,G'��n���o���(���F�a��=x/�w:G�Iy�:�VV-��)P\�4
&�$Кj�.hFMe ��HU�+���q�~&�,�B�I�1
��"Z�.�60T��B̳���v�^�A�6�K�A�Zb��$3Np����T
\��3J�h�!iu�� �P�m0�c�^���Vl��nW�F1���P��z���w:�Z�/n��N8���>���� �
���jd����W�-+:����S���� x iČ�d�n8��4\o�c��!`�� �勆�lq�������� ��h��>�J�0����B
2��dH�ھ�2`�jj��H5|�'�U ')��OȽA�1u
�C���Q-����:@��(�N�\6�Hq .-d2bN⹔�I�rI���J�R��T��<���:]+��O��|�� ��T&+:�+�J�槬�D�z��W"(
q���MA��W7��i��кrg�������k7϶>�a��W[���W�� j�
zGM���'-�L�<Nn��x�� �\e%B������<��+�I�i���W�r�s|ӑ��& +�/
��u*j�:qp/}4��A�.�)Y��
��q�ɨ��6I���1+;�̏�Í�f٨W꽬2I�V�B�1M�7�~�h~u�����+��8�#�Ŋ�#�]#
�1���n�S��:��p��������i��>C��o��Z�n$���c��2h9� b�����{�'���N
,o=��m�н���Fjo��L3��6ǹ���q:~�
A�k\"Y:���;K�P��s3D�
畩ʁ
|.�N�����nt8c���"\����b���
1oC�Whϥ�t����6�
��-�m��E��p��fű/��+rn������������ue���*;�X�#6�����\7t���Ƕ+��w�{��B� ��A�gf=�t@��̙Fհ��j.8���z���x�B�2OS<�g�j~[N":��D��w�6�B��a���X�v = =���JA�~Z�RA"�[�Ѧ���Ճ��j�#���H&��4= y�f\�$��G���ծ?�é5���8�z��� STMSʒ7z�rՁ�S K��?(;�n��z���d�-��Nw)�dʥ��p�;~Y-�q&���>�����Lp�Q��a� �7[8=X:�oay�2NեKI[���I9��QR5�I�gЂ@R �5�p���^�a��h��|d�H5$��?�-i����� ��
b���.�.��C�c���ò�,i��Ѧq���
I���v"t����
��g���m���¢��m��(&$݊�[�����w���1�c��_����p$`R���� ��;��5g-)�b+R}!� d26�����
R>�C�Ю�k�zFȥ�h
��{}U/U���~�S��Z�� ��ؚ��� ��z!�%��
�=&�<�8�h:U���yU������v`������N��� >3�ʳ��Df�8��^]�Y��~[��/2��+�Ě Ě)�Y��Ѻy���H�k�hЁ7��?Q�I�{�]'�õ��w�k~�v덯��~����#�%�֪�fjY2�E�fu
�k�6n�ؼ�3������;w��NS�օ7��]륗�~z:k���q�2M]�s�����7�������^����w((��%� ���ڼ�et�J'��T�
��@Lm.�R�W�(謋�V�T��e��k�N
�Ϣ�n�o3��W����<MFBH�]������o�wo5o��ГZ��5o�H�k����EdHd]�PY��
r���ٷ[��|��K럿ҹ~�
���4�Qa��S�}�!0��|�]-��6
�zpQy?S�2Gh �|�q�0���Y�o�%��*��ٔ�R[d#�8=���
O�I��>J$p��ע��bW�A@�;K��"-�y˼�����Xa��Cy�]
;�C؉��<c9�����/`��+�g�u�k7�x������^�9�Δ
�Ǣ�;aNQ�T���D | y\2]:�6X7R��������'pkaXH��{t�Ɩ
�g�[/^�x�����[>�m���v�^�i��r���H5t��Wㅂ��Y�7��ݼ|�t ����#8���@�RPG�-�T*�9�>���!;�r� �!:�&u ��)*枝pq���r�콬����O �^��v]�ui��k��Z ,��F;f�sԁvܗ���{��Ƶ�v�ۭT�#�eH�:�����V�$��=�RK�q��Q3�"�t��3�p�P P�:{�.����M�=8I�/2�~��U[����=�t���g9O1u��z)w���$?�t ��rأ���d�ă
�b�@S�Җ�9m!N�c5>���j 2����}���n�t��x���鏟8'MiӉ�|�c#� ����ѺIe���v����2��[��i�d��[��o:��3��rp�5�_�|�ydk,������=��]�g�U_ɉ ɉ�n$nA�Hc[�;�~�GO�o�u��S�S�QG�ȹ�n�r�?8�B��1�[�)Hť�i�u9QjY��ڞ�g���N0 f6��v��~�!n}6��h6R��R�\2G��yxA�'����?I|��ֵ��fC����l�����l��Ag���� ʇ�� A-�FVǝ:V�X�+��;B"�N|��)�~��7�7����']�ې�ww��SC�bB��ܓ�z�HԀsV�g��PNj�! !�u�嵛��@
G��
$C�a�:�K
ϣ�F�
�zb����x,��(�p�����9R���d��{������:1y@���O��ſ�߳q�����4��0;!pn�h���� �y8����m"�1���y�����,�'�c�]�:����MZ� t��~:��!�hg����.�/�f��tFLg29.C CMw�Cu��
$��2����O���K��⤴3�K���KM�ǁy��(
��0O���y�#��@w�)$�wWTM�P�u��:�b��:L��᱁lLm`o���$x1 s�����/.\���z�� VM�M���G�ˏ1�86�>)����: �DW�|?�Z�6�R>�ɤ���0���0���3��/ͬl���6��� �r)��g�2���,Xߍ�߸�q�v�����sͯ�4?�O��=�}&�h1l�6JϞ��v����[��q��A���^��|2lE�B B�F9㑌��2�8���h����?6?���ҷ��I ��/[X�h�M��uۃ!�3��w�Ѻ�r �������
VdW�~��{��;vw;�] �BX6ѹ��λh���@�Yd��I4���٫�G}~�%'��E۞� p����#| |U܇ʙI�d��
������a����f9y~�]le�i��%鳻�x�'DI�E5�:���)�T2�x���ۯl~��ڭKͻz�ކ�s�
��<��A�?�y����}�~��d�h;G��Y�M���6~d��P�s&Y
�\o
SʺC��܁G�����G�9�S��(��c����q�^���������&��gG�^Ҁ�;Gf�%3'���4o~y y�y���틛�n�=(���٠}��!=���mla��l�I��Q�
R��C)/2<>��օ7{1� ��:!ׇX����?��N����+���^�����;8����g4�\&�
���x/ـ��e�n�����c~�nЍ�LG��֟��m���
L��c��
�W���^~f����A�)��Ay�bI}�����n��w%�E�9���'6�3
�t�{���A6��sdC:����s96���q�W�Ov��@t��ݥz��o6���u��ͫ�b%m��Dx�~.'���Q� ��Z��m}�L��-�@6�]��,;�wn
�x/��'&G��g϶�~�W1Y���<
}\e*�����E��[t���=a�v��@���fҜ/3�"ɑɺ^V�i
D�
����
m��=���#�<>9~�����H�ay:�{�֛�z��f��n1���}
���Sr����o�t���s��z��iQd����4�?��v88;Gp��
�?6yv����0zO����>�NȤ��i��7?��P��#5���}�S�۬��?�F���y��#5��~+l��v v���K=�� �������b�ߒ[��������� ���u����~@�~���7{�+A�xc.w�W�ƃ�
^�ܼ���oڸ�M�em���p}��4Y2s-�[o�����Ϳ����o�_y��0�a�;7�����[�c'
zv�9$�s;� �����rI��-�o��5�Ҽ�s�'�Y��#<��y��������s�l��-��<��
vs��oہ黬 p�r��W��o���\��!
����b�<EH
���>o����� !�������Ȭ����E�9z[4�>V������ѥ���[\�M4����(�_#�cu��ť��{���{/Dv�ڀ�L�q q�dՃ�;w�/�/� �Rt�b��F�gvJ�b��|����2m)o;���&3if3lv��6�8;Hs�g�ɾ�GL2R��g�w_��e>��� �ڹ�s���0��)F�s]|;���eK����q^�yLb���NͰ��$V%�)%M���? �!�f�|:��[��S�yd�����a��Gڼ's C�5|��������|w�~o�楍{�z ��Twu+y/:�ހB1���v"�y:��m��3G����6F� 7��u�O���cC�F��'�ܯ������S>%E�1�D�]c�����$�K/l~r��+KJ�>�dA��0 �N�5�k�0��5Ӑ�E{d����Xf�S�&�`7�~��ᛴ�ނ������}y�|�j�s=]���j��������Ϻ Ϻ/em���'��u �}R����$_�a���G���� �}���������у���nC��D�q %��v ��e舄��]P^�����G/���o�+1者�(�����S>��������<���H��!�۠��wyе�����wz�K��� �D��˚2TUuj�h�E�S�o�1�ժQ'�� ���=��N>}����S�ej)�ǡt�4�3)�����
Ɍ( Q&�q�(ђv���/�>�Q�? �uv������e�u� �S�{��M'{���p�Rח�$��"'ԇ���?�b�M=��5���3� 8�&��-}8��4�K�RB�PL��r ���ȥrp�,��+�Tg�}˕v�4M����B���$���Zh��cU�+�z �S�nkQ-�0����p�d d���mm��C�U�R���J1X/P�ww��G|}�� $9�H$�pp�@�#{���>�(c
�,L6�u���@ ��G��^��!M��v�R�F��I�R0h���)�����A��'�S��;G�d��e���ԘQ�AX�ۈΟjk�L�T��Ѩ Ѩ��# ���uU��]� y��fڦ��^��CdPR�0e �d��>��@v���E��'J���h�L0Ǿ�QK� ��x�=��!E�h@�D��l��\��Ǜ��}��g[�n>�>D��o?�y孍B����g�íGtal~jn1::�� LO 9 �b���LW�7DÊ����Сw3������}�y�fl�����/��|Y��� ͏m±�G@��~�C:@P<;�dH%�@d\V�t
C�q?;=k�ç���P7���+ ��'�����eh�� dH3�{vө_�{���7û��݆�)��4�AșX�6����Jw�3�y�����N���'4���8�ь�� �-؆�n�2a��. !��! ��
i���ݦ�3��}�!$�dD���m8�Kv��9�]�ש�j��O��r>Y�̖"�;~��RCr?N���k��ZR5- -�39�7 �~ ϕ�|�X� [
���5�]��~f��5��T�!\n�sr7���hM]T�
���t�Og�YW������0��I;=2;?3:�E��`ܨ֬F-&ץRt�|x��\�as�*y�0�w
S�Ʊi�t�)�a����
19�V0�Mg ��B���jp|RLeS8�
̆W����#�|,��N@x�
M�Z���.Z��o����E$�� �L{�g=��&���mؒF?+4,p@l2�7xK����� Hﲱ�#�v�nU�$sŹ�X�6�a=�JK\ U�#\1���K�h�AgI��I&�.A&�W��'uK� �.�Й= �� u�X��Zs�Q6����p�����NLM�O��%Jf)+�&��ZI�lY]%D{c�Eu��T�Ջ9��df��4$tV� �/s ;Â[�'�i�D$�2�|�0gz�ā����Ax�ʨ�@+�,@�q�K���FyNȁ�e�bDR��q�g8 lY��� �+)�'��JJv��r*���r4eؐ�h�N�>O�%m�����������z�>�m�9a����~ � �fd�=�3�6)H^ٜD�����G-��@���'�h��#@���"��2�x(^�겲0~��,�Y���T�� � �� ��H�%/���( |�����Yl9)F�H�@�9vj�G[#y����Dݰ�%�Z����O�q n��� <
K�0� ���5we�C��F�[V�,�]z���
�\68�u}�0b>��;�,N_2���ZC��r.�!��B0� ��L���C�<��1� ��>u� +v*$C�E��ܨ.��mc����Q\����l|��������}�N\-�I3u�t��iIE�۽�#��I�F��&pZ� ��z��I��G_�xt��w�8��x4�x�Ȼ=s���^�ל�@�t:���B�R
�s1P����dc<\��lZH�e�Oe�9 9N��=H��dV��Ɓ�M�6��)@���!���!����P�
1Д,�Bn@��`%y\��c"��pBR��RbN�<A�����Pd�R���,И2Yû'�s��x��q���!&��� ������ͦ��e;��2</��<!�%�*�S.�]��U�-;�ϗ3p�P\��ECys���i���[��)�!���Z��� ��d-a<�T%p���73q
|��@5cyܟ^t�����Ds�(s,�I��eR)�Nj$8�$��_�����
�^q����ޒ;
Rox)4��aPi�� �b��
�C���R)>
D�!3�'c�LN�$�
�B�T��;�Š�����q�R:�(4
4��sؽn���A�f�h�,'�=�i,�i��\���!�6��R��BҴ�U�<qNs.[r��YL��bTݟ�C|= =Z,�X&��Q��d~�TR�i�IH��@\=�z
��K"I/+�T�T��~�e�?�jT-����8�p,��I!��+�� |2��S��@��++� �z���M�0סwIȎ�LY�7s� ܥw��]��{��w|�܉��-�-�-�-�-i���)�L���ST2�!u�gY��4�ޣ�S��ǣ���@� 5�]���+��b@��^ڀ�Μ� ��I��J.PNr�R��w*R���cY�y �D��^�1��)T@�R�<��)��z��x'Ř�7��f���d�� �& q0).t��#���̦��~]¿�8Y�)p�c��Y:A>x�m h���WT[�6vɵ%' ���%�� d92@j�'��':��RASF�ÒT x��j��S4�<Qa��m�lH
�j/$\Ƅ�����cs�I�L>�QTt4d̜3
�U�
-�&�xl�q�c$e��OqX��J�a.)�"?gtԡy]���|�^���л1.!��A�$���"#3]&:0p p��Z�C��:CCA����GrT��P�<�h����oh�S�G�����Z!�Xi�A$��%�]���)�Μ�������E� �����RF]�e��!C� �Jhg�T�E��:��L�VF���eY:ʅz
m:�Ĩ[.IK\:$<��B� �%���%Á�͢M�O��Y�2� �
^T��#MD�@eF�Q3��CI!���s˓[�P�}�gΜ�B8\$tK/���p���2҂1L ��tYH�7q���*�Vl\���ު�Ҷ>[Yů��Ზ��!��Е^We�B�R�#���b���(?A�| a
��(zX�g!�>C����e�Y�X�L����X@�!��L�WU�ޒArC�s�
:R ��^�B��-�7v v�=��(�"q�~R8���y���o�e��R-����"��`!:��뛀BV��M)
ƢT�sO�g�w1��C
���l��������ՠQ�
���"��ZDl�M��)�T@�>LJq��:�d�[�xV05�����?qb���pd�i�;����iH5Hơ�Ah<)A� �8
�C�ޱ�䬱og3'|��|�Z�Wݽ
�FA������Ѝ���:���g�_i���D��.���
���%g�dҨ��S�?����S�P��h�5&;㍒]iuʚ���->���6�A>ޭh�T���b�0��L�$�\f8� ��|��O��Ą�G�\���Hִ:�.
B~�٣�jC%���6�>��|�
:h
�.F)\v��HQ�s�TL&�� (\A3 �</M w-[h�F�bI��)��T���Wf:�p��qdi��<����DzK3 �k���8��U$'/�Frx���Z� �������J�H�\�wY��
6fD�� �-��l�mA�
��r^ X�c�9r="���1ah������&^���0�Y�L�hV)��ĪX�:�\���e
&��]>76g�� ��4Z:HC�3F
BgAdvj��S�<���<9�Sߎ{/����1
�7��9��. ���~/�����9�
��Q�l�v��v��O�ae��B�Sg�ȩJ5��CI��K$�C$�I<��M��
T�G�|w�;N�+[|��ƕ�+\�}�2�Wv?�,5�+��a��@�\�>\Y�N�W�-W�?pe}\Y����&��� ���Wv߮ ����ݏ+K��B��n9��&%�x���ۏq�X��,%nՏ-���1��?f=�c�����
�L��<���2,���2�/{�� �Tq��:⦝�Cx�`�7��d%[��V�>)?�o�< D�!��������ABRۢ#�2NQ#<N���B{�0������ �O��a��8�B/.槧��/N�L!�9Gmv��n�V#�P�u<���)��y�;p�do���<f��X���$ԃj�
直播间不存在
我这边的返回数据有时候是这样的
用 Win 10 自带的 cURL 直接抓取 https://huya.com/196645
连续十次,没有一次失败
使用工具 aki-mline
( Rust regex 命令行工具)进行测试,在下载内容一致的情况下,目前的 Regex 无法提取到数据
你看 我这边 curl 其实还是会出问题的, 但如果返回没问题 正则确实能匹配到
我刚才试了,用 rg 的情况下,直接使用 stream:([\s\S]*)window.TT_LIVE_TIMING
无法匹配,但使用了 -U
参数打开多行匹配后就能正确匹配到
196645.txt 测试用数据
C:\Users\XXXX\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules.asar.unpacked\@vscode\ripgrep\bin>rg -U "stream:([\s\S]*)window.TT_LIVE_TIMING" X:\XXX\196645.txt
104: stream: {"data":[{"gameLiveInfo":{"uid":1634546845,"sex":1,"gameFullName":"英雄联盟","gameHostName":"lol","startTime":1676808844,"activityId":0,"level":29,"totalCount":2320757,"roomName":"","isSecret":0,"cameraOpen":0,"liveChannel":1634546845,"bussType":1,"yyid":1853383269,"screenshot":"https://anchorpost.msstatic.com/cdnimage/anchorpost/1087/50/0627739a105375f942be5fbfcb4e64_1_1676443318.jpg?spformat=png,webp","activityCount":1061691,"privateHost":"1853383269","recommendStatus":0,"nick":"微竞-浪D","shortChannel":0,"avatar180":"https://huyaimg.msstatic.com/avatar/1087/50/0627739a105375f942be5fbfcb4e64_180_135.jpg?1658190347","gid":1,"channel":1634546845,"introduction":"讯刃先攻船长,一桶秒杀,咕咕咕","profileHomeHost":"1853383269","liveSourceType":0,"screenType":1,"bitRate":8000,"gameType":0,"attendeeCount":2320757,"multiStreamFlag":521,"codecType":0,"liveCompatibleFlag":0,"profileRoom":196645,"liveId":"7201839146150143585","recommendTagName":"","contentIntro":""},"gameStreamInfoList":[{"sCdnType":"AL","iIsMaster":0,"lChannelId":1634546845,"lSubChannelId":1634546845,"lPresenterUid":1634546845,"sStreamName":"1634546845-1634546845-7020325243054981120-3269217146-10057-A-0-1-imgplus","sFlvUrl":"http://al.flv.huya.com/src","sFlvUrlSuffix":"flv","sFlvAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","sHlsUrl":"http://al.hls.huya.com/src","sHlsUrlSuffix":"m3u8","sHlsAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","iLineIndex":3,"iIsMultiStream":1,"iPCPriorityRate":65,"iWebPriorityRate":65,"iMobilePriorityRate":65,"vFlvIPList":{"_proto":{"_classname":"string"},"_bValue":0,"value":[],"_classname":"list<string>"},"iIsP2PSupport":2,"sP2pUrl":"http://al.p2p.huya.com/huyalive","sP2pUrlSuffix":"slice","sP2pAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","lFreeFlag":2,"iIsHEVCSupport":3,"vP2pIPList":{"_proto":{"_classname":"string"},"_bValue":0,"value":[],"_classname":"list<string>"},"mpExtArgs":{"_kproto":{"_classname":"string"},"_vproto":{"_classname":"string"},"_bKey":0,"_bValue":0,"value":{},"_classname":"map<string,string>"},"lTimespan":"14440949865","_classname":"HUYA.StreamInfo"},{"sCdnType":"TX","iIsMaster":0,"lChannelId":1634546845,"lSubChannelId":1634546845,"lPresenterUid":1634546845,"sStreamName":"1634546845-1634546845-7020325243054981120-3269217146-10057-A-0-1-imgplus","sFlvUrl":"http://tx.flv.huya.com/src","sFlvUrlSuffix":"flv","sFlvAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","sHlsUrl":"http://tx.hls.huya.com/src","sHlsUrlSuffix":"m3u8","sHlsAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","iLineIndex":5,"iIsMultiStream":1,"iPCPriorityRate":-1,"iWebPriorityRate":-1,"iMobilePriorityRate":-1,"vFlvIPList":{"_proto":{"_classname":"string"},"_bValue":0,"value":[],"_classname":"list<string>"},"iIsP2PSupport":2,"sP2pUrl":"http://tx.p2p.huya.com/huyalive","sP2pUrlSuffix":"slice","sP2pAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","lFreeFlag":1,"iIsHEVCSupport":3,"vP2pIPList":{"_proto":{"_classname":"string"},"_bValue":0,"value":[],"_classname":"list<string>"},"mpExtArgs":{"_kproto":{"_classname":"string"},"_vproto":{"_classname":"string"},"_bKey":0,"_bValue":0,"value":{},"_classname":"map<string,string>"},"lTimespan":"14440949901","_classname":"HUYA.StreamInfo"},{"sCdnType":"HW","iIsMaster":0,"lChannelId":1634546845,"lSubChannelId":1634546845,"lPresenterUid":1634546845,"sStreamName":"1634546845-1634546845-7020325243054981120-3269217146-10057-A-0-1-imgplus","sFlvUrl":"http://hw.flv.huya.com/src","sFlvUrlSuffix":"flv","sFlvAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","sHlsUrl":"http://hw.hls.huya.com/src","sHlsUrlSuffix":"m3u8","sHlsAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","iLineIndex":6,"iIsMultiStream":1,"iPCPriorityRate":5,"iWebPriorityRate":5,"iMobilePriorityRate":5,"vFlvIPList":{"_proto":{"_classname":"string"},"_bValue":0,"value":[],"_classname":"list<string>"},"iIsP2PSupport":2,"sP2pUrl":"http://hw.p2p.huya.com/huyalive","sP2pUrlSuffix":"slice","sP2pAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","lFreeFlag":0,"iIsHEVCSupport":3,"vP2pIPList":{"_proto":{"_classname":"string"},"_bValue":0,"value":[],"_classname":"list<string>"},"mpExtArgs":{"_kproto":{"_classname":"string"},"_vproto":{"_classname":"string"},"_bKey":0,"_bValue":0,"value":{},"_classname":"map<string,string>"},"lTimespan":"14440949853","_classname":"HUYA.StreamInfo"},{"sCdnType":"HS","iIsMaster":0,"lChannelId":1634546845,"lSubChannelId":1634546845,"lPresenterUid":1634546845,"sStreamName":"1634546845-1634546845-7020325243054981120-3269217146-10057-A-0-1-imgplus","sFlvUrl":"http://hs.flv.huya.com/src","sFlvUrlSuffix":"flv","sFlvAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","sHlsUrl":"http://hs.hls.huya.com/src","sHlsUrlSuffix":"m3u8","sHlsAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","iLineIndex":14,"iIsMultiStream":1,"iPCPriorityRate":30,"iWebPriorityRate":30,"iMobilePriorityRate":30,"vFlvIPList":{"_proto":{"_classname":"string"},"_bValue":0,"value":[],"_classname":"list<string>"},"iIsP2PSupport":2,"sP2pUrl":"http://hs.p2p.huya.com/huyalive","sP2pUrlSuffix":"slice","sP2pAntiCode":"wsSecret=243974617bc47e6c0c27685bae0fb709&wsTime=63f245c6&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&txyp=o%3Anc4%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&exsphd=264_500,264_2000,264_4000,","lFreeFlag":0,"iIsHEVCSupport":3,"vP2pIPList":{"_proto":{"_classname":"string"},"_bValue":0,"value":[],"_classname":"list<string>"},"mpExtArgs":{"_kproto":{"_classname":"string"},"_vproto":{"_classname":"string"},"_bKey":0,"_bValue":0,"value":{},"_classname":"map<string,string>"},"lTimespan":"14440949899","_classname":"HUYA.StreamInfo"}]}],"count":0,"vMultiStreamInfo":[{"sDisplayName":"蓝光8M","iBitRate":0,"iCodecType":0,"iCompatibleFlag":0,"iHEVCBitRate":0,"_classname":"LiveRoom.LiveBitRateInfo"},{"sDisplayName":"蓝光4M","iBitRate":4000,"iCodecType":0,"iCompatibleFlag":0,"iHEVCBitRate":4000,"_classname":"LiveRoom.LiveBitRateInfo"},{"sDisplayName":"超清","iBitRate":2000,"iCodecType":0,"iCompatibleFlag":0,"iHEVCBitRate":2000,"_classname":"LiveRoom.LiveBitRateInfo"},{"sDisplayName":"流畅","iBitRate":500,"iCodecType":0,"iCompatibleFlag":0,"iHEVCBitRate":500,"_classname":"LiveRoom.LiveBitRateInfo"}],"iWebDefaultBitRate":2500,"iFrameRate":60}
105: };
106:
107: window.TT_LIVE_TIMING = {};
C:\Users\XXXX\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules.asar.unpacked\@vscode\ripgrep\bin>rg "stream:([\s\S]*)window.TT_LIVE_TIMING" X:\XXX\196645.txt
C:\Users\XXXX\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules.asar.unpacked\@vscode\ripgrep\bin>
我的 seam 是直接用 git 当前 commit 完整构建的,不知道会不会有影响
他不会是返回的 GBK 吧
已确认是 UTF-8
我也不知道为啥, 他就是会返回 二进制 数据, 而不是 html ...
是不是因为 他 gzip 压缩了?
是不是因为 他 gzip 压缩了?
是的啊,但是这种情况 HTTP Client 不会自行处理吗?
reqwest 的 gzip 居然不是 default feature ,是 optional feature ……
呀呀呀, 破案了, 添加上之后就好了
时而压缩 时而不压缩.. 屑虎牙
确实是 gzip 问题,终于好了 不过虎牙真骚,HTTPS 动态页面也敢压缩的,真会玩 保险起见 deflate 和 gzip 都加上吧……
问题已经修复, closed
原因:解析用到的 Regex 需要更新为多行匹配版本:
Regex::new()
默认为单行匹配