Question: I have the following code:

```
import requests, pandas as pd
from bs4 import BeautifulSoup
s = requests.session()
url2 = r'https://www.har.com/homedetail/6408-burgoyne-rd-157-houston-tx-77057/3380601'
r = s.get(url2)
soup = BeautifulSoup(r.text, 'html.parser')    
z2 = soup.find_all("div", {"class": 'dc_blocks_2c'})

```

`z2` returns a long list. How do I get all the variables and values in a dataframe? i.e. gather the `dc_label` and `dc_value` pairs.

Answer: 
Found it. Require from same npm package & add it as a plugin 

```
const prettier = require("prettier");
const tsParser = require("prettier/parser-typescript");

prettier.format(code, {
    parser, // https://prettier.io/docs/en/options.html#parser
    plugins: [tsParser],
});

```
Well this is frustrating. So to reiterate, the installtion was locally and not globally, but, when ran from the project directory it would return an error ONLY when using the babel-ts parser. If i selected another parser it worked fine. This could be due to some weird path logic within the library? Not sure.

HOWEVER, if I run this command prefixed by yarn ie:

```
yarn prettier --check '*.ts'

```

IT WORKS. Still find it quite odd that it only doesnt work with the babel-ts parser.

**UPDATE**:
Even though it wasn't present in my npm/yarn globals, it was still present on my linux system. Im guessing at some point I used a AUR package which hasn't been updated to prettier > 2.0. Don't forget to watch out for these!