本文整理汇总了Python中pupa.scrape.Event.location方法的典型用法代码示例。如果您正苦于以下问题:Python Event.location方法的具体用法?Python Event.location怎么用?Python Event.location使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pupa.scrape.Event
的用法示例。
在下文中一共展示了Event.location方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_events
# 需要导入模块: from pupa.scrape import Event [as 别名]
# 或者: from pupa.scrape.Event import location [as 别名]
def get_events(self):
events = [
{"name": "Meeting of the Join Committee on Foo",
"start_time": dt.datetime.fromtimestamp(1408923205),
"location": "Somewhere just east of Northwestsouthshire"},
{"name": "Meeting of the Join Committee on Bar",
"start_time": dt.datetime.fromtimestamp(1008923205),
"location": "Council Chambers",
"_location": {
"name": "Council Chambers",
"url": "http://somewhere.example.com",
"note": "Council Chambers, first room on the left in city hall",
"coordinates": {
"latitude": "42.360391",
"longitude": "-71.058004",
}
}},
{"name": "Meeting of the Join Committee on Baz",
"start_time": dt.datetime.fromtimestamp(1408929205),
"location": "City Hall",
"media": [
{"date": "2014-04-12",
"type": "recording",
"name": "Recording of the meeting",
"links": [
{"mimetype": "video/mp4",
"url": "http://example.com/video.mp4"},
{"mimetype": "video/webm",
"url": "http://example.com/video.webm"},
],
"offset": 19,
}
]},
{"name": "Meeting of the Join Committee on Baz",
"start_time": dt.datetime.fromtimestamp(1418929205),
"location": "City Hall",
"participants": [
{"note": "Meeting Chair",
"type": "person",
"name": "Yandel V. Watkins",},
{"note": "Attending Committee",
"type": "organization",
"name": "Ways and Means",},
],
"links": [
{"note": "Council Homepage",
"url": "http://council.example.com",},
{"note": "Background on the topic",
"url": "http://topic.news.example.com/",}
],},
{"name": "Meeting of the Join Committee on Bar",
"start_time": dt.datetime.fromtimestamp(1008923205),
"location": "Council Chambers",
"documents": [
{"url": "http://someone.example.com/slides.html",
"mimetype": "text/html",
"name": "HTML Slides",},
{"url": "http://someone.example.com/slides.ppt",
"mimetype": "application/vnd.ms-powerpoint",
"name": "Powerpoint of the Slides",},
{"url": "http://test.example.com/otherthing.ogg",
"mimetype": "audio/ogg",
"name": "Background Music",},
],
},
{"name": "Meeting of the Join Committee on Fnord",
"start_time": dt.datetime.fromtimestamp(1418929205),
"location": "City Hall",
"agenda": [
{"related_entities": [
{"note": "Yandel will be presenting on the effects of this bill",
"type": "person",
"name": "Yandel V. Watkins",},
],
"media": [
{"date": "2014-04-12",
"type": "recording",
"name": "Recording of the meeting",
"links": [
{"mimetype": "video/mp4",
"url": "http://example.com/video.mp4"},
{"mimetype": "video/webm",
"url": "http://example.com/video.webm"},
],
"offset": 19,
}
],
"notes": [
"Yandel started his presentation.",
"Yandel made some good points.",
"Yandel sat down.",
],
"subjects": [
"testimony", "this-bill", "this-subject"
],
"order": '0',
"description": "Yandel will give a talk",
},
{"related_entities": [
{"note": "Mckenzie will be presenting on the effects of this bill",
#.........这里部分代码省略.........