Skip to content

Commit

Permalink
Merge 2baf9d7 into eaee04d
Browse files Browse the repository at this point in the history
  • Loading branch information
Em-jey committed Nov 23, 2017
2 parents eaee04d + 2baf9d7 commit 98468e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ Welcome to pymorizon's documentation!
utils


category
offer
utils


category
offer
utils



Indices and tables
==================
Expand Down
5 changes: 3 additions & 2 deletions morizon/offer.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,9 @@ def get_voivodeship_for_offer(item, *args, **kwargs):


def get_meta_data(markup):
data = str(markup).split('__layer.push({"property":')[1].split(',"company":')[0]
print(data)
data = str(markup).split('__layer.push({"property":')[1]
end = re.findall(r',"company"|,"event"', data)[0]
data = data.split(end)[0]
data = json.loads(data)
return data

Expand Down

0 comments on commit 98468e4

Please sign in to comment.