mirror of
https://github.com/OpenJarbas/PySychonaut.git
synced 2025-02-19 15:00:39 +01:00
include trip report name
This commit is contained in:
parent
dac0f2701d
commit
6bc3b07670
@ -88,8 +88,10 @@ class Erowid(object):
|
|||||||
experience = Erowid.extract_experience_text(response)
|
experience = Erowid.extract_experience_text(response)
|
||||||
|
|
||||||
soup = BeautifulSoup(response, "lxml")
|
soup = BeautifulSoup(response, "lxml")
|
||||||
|
name = soup.find('div', {'class': 'title'}).getText().strip()
|
||||||
drug = soup.find('div', {'class': 'substance'}).getText().strip().lower().replace("/", ", ")
|
drug = soup.find('div', {'class': 'substance'}).getText().strip().lower().replace("/", ", ")
|
||||||
experience_data = soup.find('table', {'class': 'footdata'}).getText().strip().lower().split("\n")
|
experience_data = soup.find('table', {'class': 'footdata'}).getText().strip().lower().split("\n")
|
||||||
|
data["name"] = name
|
||||||
data["substance"] = drug
|
data["substance"] = drug
|
||||||
data["experience"] = experience
|
data["experience"] = experience
|
||||||
data["year"] = experience_data[0].split("expid:")[0].replace("exp year: ", "").strip()
|
data["year"] = experience_data[0].split("expid:")[0].replace("exp year: ", "").strip()
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='PySychonaut',
|
name='PySychonaut',
|
||||||
version='0.4',
|
version='0.4.1',
|
||||||
packages=['pysychonaut'],
|
packages=['pysychonaut'],
|
||||||
url='https://github.com/JarbasAl/PySychonaut',
|
url='https://github.com/JarbasAl/PySychonaut',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user