In the crawler program, it is often necessary to build Headers, and the content copied from DevTools is like this
And the constructed headers are such a dictionary
Quickly add quotes, you can use regular expressions to replace
1. ctrl+R calls out the replacement window
2. Enter (.*?) in the first line: (.*)
On the second line enter '$1': '$2',
3. Click Replace All
Note: When entering the regular expression, there is a space after the colon. Turn on the Regex button. The second line is followed by a comma. The input expressions are all English symbols.