<jupyter_start><jupyter_text><jupyter_code>!pip install kplr
!pip install pyfits
!pip install astropy
import kplr
import pyfits
import astropy
client = kplr.API()
star = client.star("2570518")
kdata = star.get_light_curves(fetch=True, short_cadence=False)
print(kdata)
type(kdata)
from astropy.io import fits
# fits_image_filename = fits.util.get_testdata_filepath(kdata)
# hdul = fits.open(unicode(kdata.toUtf8(), encoding="UTF-8"))
# hdul = fits.open(kdata)

# hdul = fits.open('KPLR002570518-2009166043257_LC.fits')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12773722627737227, 'fraction_numerical': 0.05656934306569343, 'mean_word_length': 7.854838709677419, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '116442', 'license': 'MIT', 'n_tokens_mistral': 246, 'n_tokens_neox': 220, 'n_words': 37, 'path': 'deep-astroseismology.ipynb', 'repo_name': 'rtarun/deep-asteroseismology', 'size': '548'}