pyppeteer icon indicating copy to clipboard operation
pyppeteer copied to clipboard

Invalid escape sequence

Open d9pouces opened this issue 4 years ago • 1 comments

There is an invalid espace sequence in pyppeteer/us_keyboard_layout.py:73: DeprecationWarning: invalid escape sequence ( 'Digit9': {'keyCode': 57, 'code': 'Digit9', 'shiftKey': '(', 'key': '9'},

Writing 'Digit9': {'keyCode': 57, 'code': 'Digit9', 'shiftKey': r'\(', 'key': '9'} should fix this warning

d9pouces avatar Jan 23 '21 10:01 d9pouces

yes i too python req=session.get(url[0]) req.html.render(sleep=2) products_div=req.html.xpath('/html/body/div[4]/div/div/div[1]/header',first=True) print(products_div) Connected to pydev debugger (build 232.10227.11) C:\Users\mmsba\AppData\Roaming\Python\Python312\site-packages\pyppeteer\us_keyboard_layout.py:73: SyntaxWarning: invalid escape sequence '(' 'Digit9': {'keyCode': 57, 'code': 'Digit9', 'shiftKey': '(', 'key': '9'},

mmsbah191 avatar Dec 22 '23 07:12 mmsbah191